[英]Sending files via the new iOS 11 iMessage keyboard app integration
I am trying to send a text file like a .txt file via the new iOS 11 iMessage keyboard app integration. 我正在尝试通过新的iOS 11 iMessage键盘应用程序集成发送文本文件(如.txt文件)。 Is that possible?
那可能吗?
From what I could tell from the imessage (message) template in the API doc, everything about the in-keyboard apps have to be visual message when sent. 从我从API文档中的imessage(消息)模板可以看出,有关键盘应用程序的所有信息在发送时都必须是可视消息。 https://developer.apple.com/documentation/messages/msmessagetemplatelayout
https://developer.apple.com/documentation/messages/msmessagetemplatelayout
Can we send any time of file? 我们可以在任何时间发送文件吗? If yes, what are its limits?
如果是,其限制是什么?
You can send an file in an MSConversation 您可以在MSConversation中发送文件
The MSConversation class represents a conversation in the Messages app.
MSConversation类表示“消息”应用程序中的对话。 Use conversation objects to access information about the currently selected message or the conversation participants, or to send text, stickers, attachments, or message objects.
使用对话对象可访问有关当前所选消息或对话参与者的信息,或发送文本,标签,附件或消息对象。
Using either 使用任一
insertAttachment :withAlternateFilename:completionHandler: which will insert the attachment into the message input field insertAttachment:withAlternateFilename:completionHandler:它将附件插入消息输入字段
or 要么
sendAttachment :withAlternateFilename:completionHandler: which sends the media file specified by the given URL. sendAttachment:withAlternateFilename:completionHandler:发送给定URL指定的媒体文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.