Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
SBAppSwitcherModel: Difference between revisions - iPhone Development Wiki

SBAppSwitcherModel: Difference between revisions

From iPhone Development Wiki
mNo edit summary
Line 12: Line 12:
[[%c(SBAppSwitcherModel) sharedInstance] snapshotOfFlattenedArrayOfAppIdentifiersWhichIsOnlyTemporary];
[[%c(SBAppSwitcherModel) sharedInstance] snapshotOfFlattenedArrayOfAppIdentifiersWhichIsOnlyTemporary];
</source>
</source>
{{occlass|library=SpringBoard.app|navbox=1}}


== Snapshot ==
== Snapshot ==
Line 30: Line 28:
}",
}",
</source>
</source>
{{occlass|library=SpringBoard.app|navbox=1}}

Revision as of 04:43, 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
    );
}",