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

Header Color

Improve this doc

Cordova plugin to change color of header in Android Multitask View

Repo: https://github.com/tomloprod/cordova-plugin-headercolor

Installation

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

Supported platforms

Usage

import { HeaderColor } from '@ionic-native/header-color';

constructor(private headerColor: HeaderColor) { }

...

this.headerColor.tint('#becb29');

Instance Members

tint(color)

Set a color to the task header

Param Type Details
color string

The hex value of the color

Returns: Promise<any>

API

Native

General