mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
fix merge conflict
This commit is contained in:
commit
538ebfe9fe
@ -54,6 +54,7 @@ import { Globalization } from './plugins/globalization';
|
|||||||
import { GooglePlus } from './plugins/google-plus';
|
import { GooglePlus } from './plugins/google-plus';
|
||||||
import { GoogleMap } from './plugins/googlemap';
|
import { GoogleMap } from './plugins/googlemap';
|
||||||
import { GoogleAnalytics } from './plugins/googleanalytics';
|
import { GoogleAnalytics } from './plugins/googleanalytics';
|
||||||
|
import { HeaderColor } from './plugins/headercolor';
|
||||||
import { Hotspot } from './plugins/hotspot';
|
import { Hotspot } from './plugins/hotspot';
|
||||||
import { HTTP } from './plugins/http';
|
import { HTTP } from './plugins/http';
|
||||||
import { Httpd } from './plugins/httpd';
|
import { Httpd } from './plugins/httpd';
|
||||||
@ -166,6 +167,7 @@ export * from './plugins/globalization';
|
|||||||
export * from './plugins/google-plus';
|
export * from './plugins/google-plus';
|
||||||
export * from './plugins/googleanalytics';
|
export * from './plugins/googleanalytics';
|
||||||
export * from './plugins/googlemap';
|
export * from './plugins/googlemap';
|
||||||
|
export * from './plugins/headercolor';
|
||||||
export * from './plugins/hotspot';
|
export * from './plugins/hotspot';
|
||||||
export * from './plugins/http';
|
export * from './plugins/http';
|
||||||
export * from './plugins/httpd';
|
export * from './plugins/httpd';
|
||||||
@ -279,6 +281,7 @@ window['IonicNative'] = {
|
|||||||
GooglePlus,
|
GooglePlus,
|
||||||
GoogleMap,
|
GoogleMap,
|
||||||
GoogleAnalytics,
|
GoogleAnalytics,
|
||||||
|
HeaderColor,
|
||||||
Hotspot,
|
Hotspot,
|
||||||
HTTP,
|
HTTP,
|
||||||
Httpd,
|
Httpd,
|
||||||
|
36
src/plugins/headercolor.ts
Normal file
36
src/plugins/headercolor.ts
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
import { Plugin, Cordova } from './plugin';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @name Headerolor
|
||||||
|
* @description
|
||||||
|
* Cordova plugin to change color of header in multitask view
|
||||||
|
*
|
||||||
|
* @usage
|
||||||
|
* ```typescript
|
||||||
|
* import { HeaderColor } from 'ionic-native';
|
||||||
|
*
|
||||||
|
* HeaderColor.tint("#becb29");
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
@Plugin({
|
||||||
|
name: 'HeaderColor',
|
||||||
|
plugin: 'cordova-plugin-headercolor',
|
||||||
|
pluginRef: 'plugins.headerColor',
|
||||||
|
repo: 'https://github.com/tomloprod/cordova-plugin-headercolor',
|
||||||
|
platforms: ['Android']
|
||||||
|
})
|
||||||
|
export class HeaderColor {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set a color to the task header
|
||||||
|
* @param color {string} The hex value of the color
|
||||||
|
* @returns {Promise<any>}
|
||||||
|
*/
|
||||||
|
@Cordova({
|
||||||
|
callbackStyle: 'object',
|
||||||
|
successName: 'success',
|
||||||
|
errorName: 'failure'
|
||||||
|
})
|
||||||
|
static tint(color: string): Promise<any> { return; }
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user