StatusBar
The status bar is the area where notifications, status icons and device time are displayed. The singleton instance can be accessed via .
Import this type with “const {StatusBar} = require('tabris');
”
Type: Color
Background color of the status bar. Should be used in conjunction with the theme
property to keep the status bar icons legible.
displayMode
Type: string, supported values: default
, hide
, float
, default: default
Controls how the status bar is positioned relative to the . The value default
places the content below the status bar. The hide
option lets the status bar disappear, making more room for the content. The float
option lets the content flow underneath the status bar. On Windows float
is currently not supported and treated as hide
.
The height of the status bar in device independent pixel. Can be used in conjunction with the displayMode
to offset the content as to not have it covered by the status bar.This property can only be set on widget creation. Once set, it cannot be changed anymore.
theme
iOSAndroid
Type: string, supported values: default
, light
, dark
, default: default
Defines the shade used on the status bar. A dark
theme sets the foreground icons to be of a light color, whereas light
sets the icons to a dark color. The theme should be set in conjunction with the property for contrast. The value default
selects the default theme that depends on the device and on the app. Available on iOS and Android 6+.
Fired when the property has changed.
Event Parameters
displayModeChanged
Fired when the displayMode property has changed.
Event Parameters
value: string The new value of displayMode.
Fired when the property has changed.
Event Parameters
value: string The new value of .