Build 1.0_r1(from source)

android.app
Class StatusBarManager

java.lang.Object
  extended by android.app.StatusBarManager

public class StatusBarManager
extends Object

Allows an app to control the status bar.


Field Summary
static int DISABLE_EXPAND
          Flag for disable(int) to make the status bar not expandable.
static int DISABLE_NONE
          Re-enable all of the status bar features that you've disabled.
static int DISABLE_NOTIFICATION_ALERTS
          Flag for disable(int) to disable incoming notification alerts.
static int DISABLE_NOTIFICATION_ICONS
          Flag for disable(int) to hide notification icons and ticker text.
 
Constructor Summary
StatusBarManager(Context context)
           
 
Method Summary
 IBinder addIcon(String slot, int iconId, int iconLevel)
           
 void collapse()
          Collapse the status bar.
 void disable(int what)
          Disable some features in the status bar.
 void expand()
          Expand the status bar.
 void removeIcon(IBinder key)
           
 void toggle()
          Toggle the status bar.
 void updateIcon(IBinder key, String slot, int iconId, int iconLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISABLE_EXPAND

public static final int DISABLE_EXPAND
Flag for disable(int) to make the status bar not expandable. Unless you also set #DISABLE_NOTIFICATIONS, new notifications will continue to show.

See Also:
Constant Field Values

DISABLE_NOTIFICATION_ICONS

public static final int DISABLE_NOTIFICATION_ICONS
Flag for disable(int) to hide notification icons and ticker text.

See Also:
Constant Field Values

DISABLE_NOTIFICATION_ALERTS

public static final int DISABLE_NOTIFICATION_ALERTS
Flag for disable(int) to disable incoming notification alerts. This will not block icons, but it will block sound, vibrating and other visual or aural notifications.

See Also:
Constant Field Values

DISABLE_NONE

public static final int DISABLE_NONE
Re-enable all of the status bar features that you've disabled.

See Also:
Constant Field Values
Constructor Detail

StatusBarManager

StatusBarManager(Context context)
Method Detail

disable

public void disable(int what)
Disable some features in the status bar. Pass the bitwise-or of the DISABLE_* flags. To re-enable everything, pass DISABLE_NONE.


expand

public void expand()
Expand the status bar.


collapse

public void collapse()
Collapse the status bar.


toggle

public void toggle()
Toggle the status bar.


addIcon

public IBinder addIcon(String slot,
                       int iconId,
                       int iconLevel)

updateIcon

public void updateIcon(IBinder key,
                       String slot,
                       int iconId,
                       int iconLevel)

removeIcon

public void removeIcon(IBinder key)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature