StatusBarManager 类用于在程序中控制状态栏.

android.app.StatusBarManager 类用于在程序中控制状态栏.

final public static int DISABLE_EXPAND
Flag for StatusBarManager.disable to make the status bar not expandable.
final public static int DISABLE_NONE
Re-enable all of the status bar features that you’ve disabled.
final public static int DISABLE_NOTIFICATION_ALERTS
Flag for StatusBarManager.disable to disable incoming notification alerts.
final public static int DISABLE_NOTIFICATION_ICONS
Flag for StatusBarManager.disable to hide notification icons and scrolling ticker text.
final public static int DISABLE_NOTIFICATION_TICKER
Flag for StatusBarManager.disable to hide only the scrolling ticker.

Constructor Summary
StatusBarManager(Context context)

Method Summary
public void collapse()
Collapse the status bar.
public void disable(int what)
Disable some features in the status bar.
public void expand()
Expand the status bar.
public void removeIcon(String slot)

public void setIcon(String slot, int iconId, int iconLevel)

public void setIconVisibility(String slot, boolean visible)

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

DISABLE_NONE
final public static int DISABLE_NONE(Code)
Re-enable all of the status bar features that you’ve disabled.

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

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

DISABLE_NOTIFICATION_TICKER
final public static int DISABLE_NOTIFICATION_TICKER(Code)
Flag for StatusBarManager.disable to hide only the scrolling ticker. Note that StatusBarManager.DISABLE_NOTIFICATION_ICONS implies StatusBarManager.DISABLE_NOTIFICATION_TICKER .

Constructor Detail
StatusBarManager
StatusBarManager(Context context)(Code)

Method Detail
collapse
public void collapse()(Code)
Collapse the status bar.

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

expand
public void expand()(Code)
Expand the status bar.

removeIcon
public void removeIcon(String slot)(Code)

setIcon
public void setIcon(String slot, int iconId, int iconLevel)(Code)

setIconVisibility
public void setIconVisibility(String slot, boolean visible)(Code)

你可能感兴趣的:(StatusBarManager 类用于在程序中控制状态栏.)