(formatting) |
Twodayslate (talk | contribs) No edit summary |
||
Line 14: | Line 14: | ||
{{occlass|library=SpringBoard.app|navbox=1}} | {{occlass|library=SpringBoard.app|navbox=1}} | ||
== Snapshot == | |||
-(id)snapshot; returns an NSArray of SBDisplayLayout as seen below | |||
<source> | |||
"<SBDisplayLayout: 0x170838540> { | |||
SBDisplayLayoutDisplayItemsPlistKey = ( | |||
{ | |||
SBDisplayItemDisplayIdentifierPlistKey = \"com.apple.Preferences\"; | |||
SBDisplayItemTypePlistKey = App; | |||
} | |||
); | |||
SBDisplayLayoutSizePlistKey = ( | |||
0 | |||
); | |||
}", | |||
</source> |
Revision as of 02:04, 6 January 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
);
}",