UNPKG

1.79 kBJavaScriptView Raw
1"use strict";
2var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5 else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6 return c > 3 && r && Object.defineProperty(target, key, r), r;
7};
8var plugin_1 = require('./plugin');
9/**
10 * @name HeaderColor
11 * @description
12 * Cordova plugin to change color of header in multitask view
13 *
14 * @usage
15 * ```typescript
16 * import { HeaderColor } from 'ionic-native';
17 *
18 * HeaderColor.tint("#becb29");
19 * ```
20 */
21var HeaderColor = (function () {
22 function HeaderColor() {
23 }
24 /**
25 * Set a color to the task header
26 * @param color {string} The hex value of the color
27 * @returns {Promise<any>}
28 */
29 HeaderColor.tint = function (color) { return; };
30 __decorate([
31 plugin_1.Cordova({
32 callbackStyle: 'object',
33 successName: 'success',
34 errorName: 'failure'
35 })
36 ], HeaderColor, "tint", null);
37 HeaderColor = __decorate([
38 plugin_1.Plugin({
39 pluginName: 'HeaderColor',
40 plugin: 'cordova-plugin-headercolor',
41 pluginRef: 'plugins.headerColor',
42 repo: 'https://github.com/tomloprod/cordova-plugin-headercolor',
43 platforms: ['Android']
44 })
45 ], HeaderColor);
46 return HeaderColor;
47}());
48exports.HeaderColor = HeaderColor;
49//# sourceMappingURL=headercolor.js.map
\No newline at end of file