Difference between revisions of "Spotlight"

From iPhone Development Wiki
Jump to: navigation, search
(Search Modes)
Line 19: Line 19:
 
! Value
 
! Value
 
! Meaning
 
! Meaning
 +
! Displays
 
|-
 
|-
 
| 0
 
| 0
| pull down?
+
| pull left
 +
| Siri Suggestions, Nearby, News
 
|-
 
|-
 
| 1
 
| 1
| pull left?
+
| pull down
 +
| Siri Suggestions
 
|-
 
|-
 
| 2
 
| 2
 
| searching?
 
| searching?
 
|}
 
|}

Revision as of 04:02, 30 November 2015

Many files in SBSearch*, SPUISearch*

How to open:

[[%c(SpringBoard) sharedApplication] _revealSpotlight];

This will open Spotlight from anywhere. If you are inside an application, it will close that application and go to the homepage in order to open Spotlight.

[(AXSpringBoardServer *)[%c(AXSpringBoardServer) server] revealSpotlight];

How to dismiss:

[[%c(SBSearchGesture) sharedInstance] resetAnimated:YES];

If you are interested in creating your own search results check out SearchLoader.

Search Modes

Value Meaning Displays
0 pull left Siri Suggestions, Nearby, News
1 pull down Siri Suggestions
2 searching?