Object “statusBar”

Object > NativeObject > StatusBar

The status bar is the area where notifications, status icons and device time are displayed. The singleton instance can be accessed via statusBar.

StatusBar on Android
StatusBar on iOS
Constructor private
Singleton statusBar
Namespace tabris
Direct subclasses None
JSX support No


import {statusBar} from 'tabris';

statusBar.background = 'red';
statusBar.displayMode = 'float';

See also:



Background color of the status bar. Should be used in conjunction with the theme property to keep the status bar icons legible.

Type ColorValue
Settable Yes


Controls how the status bar is positioned relative to the contentView. 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.

Type 'default' | 'hide' | 'float'
Default 'default'
Settable Yes


The height of the status bar in device independent pixel. Can be used in conjunction with the displayMode 'float' to offset the content as to not have it covered by the status bar.

Type number
Settable No

This property can only be set via constructor or JSX. Once set, it cannot change anymore.


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 background 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+.

Type 'default' | 'light' | 'dark'
Default 'default'
Settable Yes




Fired when status bar is tapped.

Parameter Type Description
touches {x: number, y: number}[] Touch coordinates relative to the origin coordinates of the widget.

Change Events


Fired when the theme property has changed.

Parameter Type Description
value string The new value of theme.


Fired when the displayMode property has changed.

Parameter Type Description
value string The new value of displayMode.


Fired when the background property has changed.

Parameter Type Description
value ColorValue The new value of background.