Namespace: localnotification

Oracle® Fusion Middleware JSDoc Reference for Oracle Mobile Application Framework
2.3.0.0.0

E68517-01

QuickNav

adf.mf.api.localnotification

Local Notifications

Methods

<static> add(options, scb, ecb)

Schedule a local notification
Parameters:
Name Type Description
options Object notification options
Properties
Name Type Description
title string notification title
alert string notification alert
date Date date at which notification needs to be triggered
badge Number application icon will be badged by this number when notification is triggered
sound string set it to 'SYSTEM_DEFAULT' to play the default system sound upon a notification
vibration string set it to 'SYSTEM_DEFAULT' for default system vibration upon a notification
payload Object custom payload to be sent via notification
scb successCallback success callback
ecb errorCallback error callback

<static> cancel(notificationId, scb, ecb)

Cancel a scheduled local notification
Parameters:
Name Type Description
notificationId string id of the scheduled notification that needs to be cancelled
scb successCallback success callback
ecb errorCallback error callback