mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-29 02:12:46 +08:00
feat(push): add missing decorator option to channel
feat(push): add missing decorator option to channel
This commit is contained in:
commit
0fe5102801
@ -219,6 +219,7 @@ export interface Channel {
|
|||||||
id: string;
|
id: string;
|
||||||
description: string;
|
description: string;
|
||||||
importance: Priority;
|
importance: Priority;
|
||||||
|
sound?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PushEvent = string;
|
export type PushEvent = string;
|
||||||
@ -334,15 +335,19 @@ export class Push extends IonicNativePlugin {
|
|||||||
* Create a new notification channel for Android O and above.
|
* Create a new notification channel for Android O and above.
|
||||||
* @param channel {Channel}
|
* @param channel {Channel}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova({
|
||||||
createChannel(channel: Channel): Promise<any> { return; }
|
callbackOrder: 'reverse'
|
||||||
|
})
|
||||||
|
createChannel(channel?: Channel): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a notification channel for Android O and above.
|
* Delete a notification channel for Android O and above.
|
||||||
* @param id
|
* @param id {string}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova({
|
||||||
deleteChannel(id: string): Promise<any> { return; }
|
callbackOrder: 'reverse'
|
||||||
|
})
|
||||||
|
deleteChannel(id?: string): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of currently configured channels.
|
* Returns a list of currently configured channels.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user