Need help upgrading to Ionic Framework 4.0? Get assistance with our Enterprise Migration Services EXPLORE NOW

Navigation Barβ

Improve this doc

This plugin is still in beta stage and may not work as expected. Please submit any issues to the plugin repo.

The NavigationBar plugin allows you to hide and auto hide the android navigation bar.

Repo: https://github.com/cranberrygame/cordova-plugin-navigationbar

Installation

  1. Install the Cordova and Ionic Native plugins:
    $ ionic cordova plugin add cordova-plugin-navigationbar
    $ npm install --save @ionic-native/navigation-bar@4
    
  2. Add this plugin to your app's module

Supported platforms

Usage

import { NavigationBar } from '@ionic-native/navigation-bar';

constructor(private navigationBar: NavigationBar) { }

...

let autoHide: boolean = true;
this.navigationBar.setUp(autoHide);

Instance Members

setUp(autohide)

hide automatically (or not) the navigation bar.

Param Type Details
autohide boolean

Returns: Promise<any>

hideNavigationBar()

Hide the navigation bar.

Returns: Promise<any>

API

Native

General