Twodayslate (talk | contribs) No edit summary |
mNo edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 13: | Line 13: | ||
</source> | </source> | ||
== Snapshot == | |||
<code>-(id)snapshot;</code> returns an NSArray of SBDisplayLayout as seen below | |||
-(id)snapshot; returns an NSArray of SBDisplayLayout as seen below | <source lang="xml"> | ||
<source> | <SBDisplayLayout: 0x170838540> { | ||
SBDisplayLayoutDisplayItemsPlistKey = ( | SBDisplayLayoutDisplayItemsPlistKey = ( | ||
{ | { | ||
Line 28: | Line 27: | ||
0 | 0 | ||
); | ); | ||
} | }, | ||
</source> | </source> | ||
== References == | |||
{{occlass|library=SpringBoard.app|navbox=1}} |
Latest revision as of 14:05, 11 August 2015
To get the list of recently opened apps (the list in the app switcher).
iOS 7
[[%c(SBAppSwitcherModel) sharedInstance] identifiers];
iOS 8
[[%c(SBAppSwitcherModel) sharedInstance] snapshotOfFlattenedArrayOfAppIdentifiersWhichIsOnlyTemporary];
Snapshot
-(id)snapshot;
returns an NSArray of SBDisplayLayout as seen below
<SBDisplayLayout: 0x170838540> {
SBDisplayLayoutDisplayItemsPlistKey = (
{
SBDisplayItemDisplayIdentifierPlistKey = \"com.apple.Preferences\";
SBDisplayItemTypePlistKey = App;
}
);
SBDisplayLayoutSizePlistKey = (
0
);
},
References