mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-13 14:21:04 +08:00
feat(local-notifications): add un
method to unsubscribe from events (#1871)
This commit is contained in:
parent
cde87e2113
commit
ce5966bf10
@ -324,5 +324,15 @@ export class LocalNotifications extends IonicNativePlugin {
|
|||||||
})
|
})
|
||||||
on(eventName: string, callback: any): void { }
|
on(eventName: string, callback: any): void { }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes a callback of a specific event
|
||||||
|
* @param eventName The name of the event. Available events: schedule, trigger, click, update, clear, clearall, cancel, cancelall
|
||||||
|
* @param callback Call back function. All events return notification and state parameter. clear and clearall return state parameter only.
|
||||||
|
*/
|
||||||
|
@Cordova({
|
||||||
|
sync: true
|
||||||
|
})
|
||||||
|
un(eventName: string, callback: any): void { }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user