-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
34 lines (32 loc) · 1.02 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { IonicNativePlugin } from '@ionic-native/core';
/**
* @name Status Bar
* @description
* Manage the appearance of the native navigation bar.
*
* Requires Cordova plugin: `cordova-plugin-navigationbar-color`. For more info, please see the [NavigationBarColor plugin docs](https://github.com/fagundes/cordova-plugin-navigationbar).
*
* @usage
* ```typescript
* import { NavigationBarColor } from 'ionic-plugin-navigation-bar-color';
*
* constructor(private navigationBarColor: NavigationBarColor) { }
*
* ...
*
*
* // set navigation bar to white
* this.navigationBarColor.backgroundColorByHexString('#ffffff');
* ```
*
*/
export declare class NavigationBarColor extends IonicNativePlugin {
/**
* Set the navigation bar to a specific hex color (CSS shorthand supported!).
*
* iOS note: you must call NavigationBarColor.overlaysWebView(false) to enable color changing.
*
* @param {string} hexString The hex value of the color.
*/
backgroundColorByHexString(hexString: string): void;
}