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
SBApplication: Difference between revisions - iPhone Development Wiki

SBApplication: Difference between revisions

From iPhone Development Wiki
m (parental control.)
mNo edit summary
Line 13: Line 13:
</source>
</source>
Note that this method will not respect parental control. You can look up the list of restricted apps using <tt>-[</tt><tt>[[SpringBoard]] parentalControlsDisabledApplications]</tt>, however.
Note that this method will not respect parental control. You can look up the list of restricted apps using <tt>-[</tt><tt>[[SpringBoard]] parentalControlsDisabledApplications]</tt>, however.
== Application Info.plist ==
SpringBoard will recognize the following Info.plist keys:
* UISystemProvisioning
* SBDemoRole<ref name="hunt">http://blogs.oreilly.com/iphone/2008/11/hunting-down-infoplist-prefere.html</ref>
* SBIsRevealable<ref name="hunt"/><ref>http://www.tuaw.com/2007/11/29/enable-app-hiding-on-your-iphone/</ref>
* SBUsesNetwork<ref>http://stackoverflow.com/questions/596589/iphone-sdk-internet-connection-detection</ref>
* UIJetsamPriority
* SBIconClass
* SBSpotlightIcons
* UIRoles
* SBMachServices
* Other UIKit keys described in http://developer.apple.com/IPhone/library/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html


== References ==
== References ==
<references />
* Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/SpringBoard/SBApplication.h
* Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/SpringBoard/SBApplication.h


{{occlass|library=SpringBoard.app|navbox=1}}
{{occlass|library=SpringBoard.app|navbox=1}}

Revision as of 11:29, 21 November 2009

SBApplication is a class representing the application screen on the SpringBoard. SBApplication is a subclass of SBDisplay. See SBDisplay for more info.

Retrieving an instance of SBApplication

To retrieve a known instance, you must go through SBApplicationController. For example, if the display ID of the application is known, you can use:

SBApplication* app = [[SBApplicationController sharedInstance] applicationWithDisplayIdentifier:@"com.yourcompany.appname"];

Launching an SBApplication

To launch an SBApplication you can use SBUIController:

[[SBUIController sharedInstance] activateApplicationAnimated:app];

Note that this method will not respect parental control. You can look up the list of restricted apps using -[SpringBoard parentalControlsDisabledApplications], however.

Application Info.plist

SpringBoard will recognize the following Info.plist keys:

References