Get full text of search request from Spotlight?

一笑奈何 提交于 2019-12-11 11:51:27

问题


Since iOS9, it's possible to make Spotlight to show some items from own Application in search results. When user taps on result - App opens with some action handler.

My question: is it possible somehow to get the full text of user's search request in application?

Example: My application indexes item 'banana' using CoreSpotlight API. User searches: "banana pie". Spotlight shows result from my App, actually, item "banana". I would like to get string "banana pie".

I have already tried to find it myself on developer.apple.com, looked through CoreSpotlight documentation, but didn't find anything that completely answers my question.

来源:https://stackoverflow.com/questions/31783369/get-full-text-of-search-request-from-spotlight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!