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

SBStatusBarController: Difference between revisions

From iPhone Development Wiki
(Created page with 'SBStatusBarController is a singleton class that manages the status bar. You can access the singleton instance with the nonstandard method as follows: <source lang="objc"> +(i…')
 
(id -> NSString *)
Line 9: Line 9:


<source lang="objc">
<source lang="objc">
-(void)setDoubleHeightMode:(int)mode glowAnimationEnabled:(BOOL)enabled bundleID:(id)id;
-(void)setDoubleHeightMode:(int)mode glowAnimationEnabled:(BOOL)enabled bundleID:(NSString *)id;
-(void)setDoubleHeightMode:(int)mode glowAnimationEnabled:(BOOL)enabled bundleID:(id)id priority:(int)priority;
-(void)setDoubleHeightMode:(int)mode glowAnimationEnabled:(BOOL)enabled bundleID:(NSString *)id priority:(int)priority;
</source>
</source>
These methods activate and deactivate the double height status bar. The parameters are as follows:
These methods activate and deactivate the double height status bar. The parameters are as follows:
Line 23: Line 23:


<source lang="objc">
<source lang="objc">
-(void)clearDoubleHeightStatusBarForBundleID:(id)bundleID;
-(void)clearDoubleHeightStatusBarForBundleID:(NSString *)bundleID;
-(int)doubleHeightMode;
-(int)doubleHeightMode;
</source>
</source>
Line 29: Line 29:


<source lang="objc">
<source lang="objc">
-(void)setDoubleHeightPrefixText:(id)text bundleID:(id)id;
-(void)setDoubleHeightPrefixText:(id)text bundleID:(NSString *)id;
-(id)doubleHeightPrefixText;
-(id)doubleHeightPrefixText;
-(void)setDoubleHeightStatusText:(id)text bundleID:(id)id;
-(void)setDoubleHeightStatusText:(id)text bundleID:(NSString *)id;
-(id)doubleHeightStatusText;
-(id)doubleHeightStatusText;
</source>
</source>

Revision as of 04:27, 24 January 2010

SBStatusBarController is a singleton class that manages the status bar. You can access the singleton instance with the nonstandard method as follows:

+(id)sharedStatusBarController

Double Height Status Bar

There are a few methods used generally for a double height status bar.

-(void)setDoubleHeightMode:(int)mode glowAnimationEnabled:(BOOL)enabled bundleID:(NSString *)id;
-(void)setDoubleHeightMode:(int)mode glowAnimationEnabled:(BOOL)enabled bundleID:(NSString *)id priority:(int)priority;

These methods activate and deactivate the double height status bar. The parameters are as follows:

  • mode: Generally, color of the status bar. Options are listed below:
    • 1: Green, fixed text: "Touch to return to call".
    • 2: Red. Text is in the form "PREFIX STATUS".
    • 3: Red. Appears to be the same as 2.
    • 4: Blue, used in tethering. Form is "STATUS".
  • enabled: Controls the glowing of the status bar.
  • id: Bundle ID to set the mode for. Can be nil, but not suggested.
  • priority: Not sure, but assumed to be the priority for this bundle ID and the double height status bar.
-(void)clearDoubleHeightStatusBarForBundleID:(NSString *)bundleID;
-(int)doubleHeightMode;

Sets or clears the double height status bar mode.

-(void)setDoubleHeightPrefixText:(id)text bundleID:(NSString *)id;
-(id)doubleHeightPrefixText;
-(void)setDoubleHeightStatusText:(id)text bundleID:(NSString *)id;
-(id)doubleHeightStatusText;

These methods set and retrieve the status bar text. For different modes, different portions of the text is used, see above for details. Parameters:

  • text: The text that you wish to set.
  • id: The bundle ID you wish to set the text for,

References