The StatusBar API Provides methods for configuring the sytle of the Status Bar, along with showing or hiding it.
import {
Plugins,
StatusBarStyle,
} from '@avocadojs/core';
export class StatusBarExample {
isStatusBarLight = true
changeStatusBar() {
Plugins.StatusBar.setStyle({
style: this.isStatusBarLight ? StatusBarStyle.Dark : StatusBarStyle.Light
}, () => {});
this.isStatusBarLight = !this.isStatusBarLight;
}
hideStatusBar() {
Plugins.StatusBar.hide();
}
showStatusBar() {
Plugins.StatusBar.show();
}
}