Type Function Library notifications.* Return value none Revision 2017.3060 Keywords notification, notifications See also Local/Push Notifications notifications.scheduleNotification()
Removes the specified notification (or all notifications) from the scheduler, status bar, and/or notification center.
notifications.cancelNotification( [notificationId] )
A notification reference ID returned by notifications.scheduleNotification(). If no ID is passed, all notifications are cancelled.
local notifications = require( "plugin.notifications" ) -- Schedule a notification local options = { alert = "Wake up!" } local notificationId = notifications.scheduleNotification( 60, options ) -- Cancel the above notification notifications.cancelNotification( notificationId )