public class StatusBarConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StatusBarConfig.Style
Enumeration for style.
|
Constructor and Description |
---|
StatusBarConfig()
Constructs the status bar configuration instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getBackgroundColor()
Gets the RGB background color.
|
int |
getOverlaysWebView()
Gets the overlays web view.
|
StatusBarConfig.Style |
getStyle()
Gets the style.
|
int |
getVisibility()
Gets 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.
|
public StatusBarConfig()
public void show()
public void hide()
public int getVisibility()
public void setBackgroundColor(int rgb)
Note: on iOS 7, when you set setOverlaysWebView to false, you can set the background color of the statusbar by color name.
rgb
- The RGB color in range between 0 and 0xFFF_FFF.IllegalArgumentException
- If the value is out of range.public int getBackgroundColor()
public void setStyle(StatusBarConfig.Style style)
Note: the style is only supported for iOS and Windows Phone.
style
- The style, or null to unconfigure it.public StatusBarConfig.Style getStyle()
Note: the style is only supported for iOS and Windows Phone.
public void setOverlaysWebView(boolean doOverlay)
doOverlay
- Set to true to overlay, false to let the status bar reside above the web view.public int getOverlaysWebView()
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.