How to use the @capacitor/core.StatusBarStyle.Dark function in @capacitor/core

To help you get started, we’ve selected a few @capacitor/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ionic-team / capacitor / example / src / pages / status-bar / status-bar.ts View on Github external
changeStatusBar() {
    Plugins.StatusBar.setStyle({
      style: this.isStatusBarLight ? StatusBarStyle.Dark : StatusBarStyle.Light
    });
    this.isStatusBarLight = !this.isStatusBarLight;
  }
github ModusCreateOrg / beep / src / mixins / toggleStatusbarColor.js View on Github external
mounted() {
    for (const selector of metaSelectors) {
      document.querySelector(selector).content = this.newStatusbarColor
    }
    StatusBar.setBackgroundColor({ color: this.newStatusbarColor }).catch(this.$helpers.err)
    StatusBar.setStyle({ style: StatusBarStyle.Dark }).catch(this.$helpers.err)
  },
  beforeRouteLeave(to, from, next) {
github nstudio / xplat / src / app.ionic / _files / src / app / app.component.ts View on Github external
this.platform.ready().then(() => {
      if (this.platform.is('capacitor')) {
        StatusBar.setStyle({
          style: StatusBarStyle.Dark
        });
      }
    });
  }