Package com.iizix.gyro
Class StatusBarConfig
java.lang.Object
com.iizix.gyro.StatusBarConfig
The status bar configuration class. To configure, call the methods in the class.
- Author:
- Christopher Mindus
- Nested Class SummaryNested Classes
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- intGets the RGB background color.- intGets the overlays web view.- getStyle()Gets the style.- intGets the status bar visibility configured.- void- hide()Hides the status bar.- void- setBackgroundColor- (int rgb) Sets the RGB background color.- void- setOverlaysWebView- (boolean doOverlay) Sets if the status bar should overlay the web view or not.- void- setStyle- (StatusBarConfig.Style style) Sets the style.- void- show()Shows the status bar.
- Constructor Details- StatusBarConfigpublic StatusBarConfig()Constructs the status bar configuration instance.
 
- Method Details- showpublic void show()Shows the status bar.
- hidepublic void hide()Hides the status bar.
- getVisibilitypublic int getVisibility()Gets the status bar visibility configured.- Returns:
- 1 for show, 0 for hide and -1 if not set.
 
- setBackgroundColorpublic void setBackgroundColor- (int rgb) Sets the RGB background color.- Note: on iOS 7, when you set setOverlaysWebView to false, you can set the background color of the statusbar by color name. - Parameters:
- rgb- The RGB color in range between 0 and 0xFFF_FFF.
- Throws:
- IllegalArgumentException- If the value is out of range.
 
- getBackgroundColorpublic int getBackgroundColor()Gets the RGB background color.- Returns:
- The background color set, -1 if not set.
 
- setStyleSets the style.- Note: the style is only supported for iOS and Windows Phone. - Parameters:
- style- The style, or null to unconfigure it.
 
- getStyleGets the style.- Note: the style is only supported for iOS and Windows Phone. - Returns:
- The style, or null if not configured.
 
- setOverlaysWebViewpublic void setOverlaysWebView- (boolean doOverlay) Sets if the status bar should overlay the web view or not.- Parameters:
- doOverlay- Set to true to overlay, false to let the status bar reside above the web view.
 
- getOverlaysWebViewpublic int getOverlaysWebView()Gets the overlays web view.- Returns:
- 1=overlay, 0=above, -1=not configured.