如果您使用NSUserActivity
集成Siri快捷方式,则可以选择在其keywords
中添加contentAttributeSet
,这将有助于您的应用在以下任何关键字的关注下显示输入,添加如下内容:
let attributes = CSSearchableItemAttributeSet(itemContentType: kUTTypeContent as String)
attributes.keywords = ["games", "sports", "movies"]
userActivity.contentAttributeSet = attributes
但是,INIntent
,INInteraction
或INShortcut
似乎没有集成任何类似的功能。
想知道我是否错过了某件事,或者某人有解决方法,或者甚至无法做到这一点。