Twodayslate (talk | contribs) (Created page with "Many files in SBSearch*, SPUISearch* How to open: <pre> [[%c(SpringBoard) sharedApplication] _revealSpotlight]; </pre> If you are interested in creating your own search resu...") |
Twodayslate (talk | contribs) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
[[%c(SpringBoard) sharedApplication] _revealSpotlight]; | [[%c(SpringBoard) sharedApplication] _revealSpotlight]; | ||
</pre> | </pre> | ||
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. | |||
<pre>[(AXSpringBoardServer *)[%c(AXSpringBoardServer) server] revealSpotlight];</pre> | |||
How to dismiss: | |||
<pre> | |||
[[%c(SBSearchGesture) sharedInstance] resetAnimated:YES]; | |||
</pre> | |||
If you are interested in creating your own search results check out [[SearchLoader]]. | If you are interested in creating your own search results check out [[SearchLoader]]. | ||
=== Search Modes === | |||
{| class="wikitable" | |||
|- | |||
! Value | |||
! Meaning | |||
! Displays | |||
! SearchModel | |||
|- | |||
| 0 | |||
| pull left | |||
| Siri Suggestions, Nearby, News | |||
| Full | |||
|- | |||
| 1 | |||
| pull down | |||
| Siri Suggestions | |||
| Partial | |||
|- | |||
| 2 | |||
| searching | |||
| * | |||
| General/shared? | |||
|} | |||
Each search mode has a different <code>SPUISearchModel</code>. The <code>sharedInstance</code> of <code>SPUISearchViewController</code> <code>currentSearchModel:</code> points to the <code>sharedFullZWKInstance</code> (more research required). |
Latest revision as of 02:53, 22 January 2016
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 | SearchModel |
---|---|---|---|
0 | pull left | Siri Suggestions, Nearby, News | Full |
1 | pull down | Siri Suggestions | Partial |
2 | searching | * | General/shared? |
Each search mode has a different SPUISearchModel
. The sharedInstance
of SPUISearchViewController
currentSearchModel:
points to the sharedFullZWKInstance
(more research required).