应用搜索有三个不一样但相关的api。他们为使不一样的应用程序用例设计搜索。 App Search has three APIs that are distinct but related. They're designed for enabling different use cases of App Search.html
第一个是NSUserActivityios
The first one is NSUserActivity. This is an extension of the Handoff API that we released in iOS 8.web
第二个是CoreSpotlightapi
The second API is called CoreSpotlight.app
第三个是web标记spa
Third API is web markup.设计
Handoff 切换rest
NSUserActivity was introduced in iOS 8 to support Handoff. Handoff is the amazing feature that allows you to start an activity on one device and pick up right where you left off on another. NSUserActivity is a lightweight way to capture application state which can be restored later.code
切换是神奇的特性,它容许您启动一个活动在一台设备上,从你离开的地方。NSUserActivity捕获应用程序状态是一个轻量级方法后能够恢复。htm
http://www.cocoachina.com/ios/20150409/11515.html
http://code.tutsplus.com/tutorials/an-introduction-to-handoff--cms-24349
http://www.cocoachina.com/ios/20150819/13116.html
search api