Moai SDK  2.0
MOAINotificationsIOS Class Reference
+ Inheritance diagram for MOAINotificationsIOS:

Function List

getAppIconBadgeNumber
 
registerForRemoteNotifications
 
setAppIconBadgeNumber
 
unregisterForRemoteNotifications
 

Detailed Description

ConstantsDescription
MOAINotificationsIOS.REMOTE_NOTIFICATION_REGISTRATION_COMPLETE Event code for notification registration completion.
MOAINotificationsIOS.REMOTE_NOTIFICATION_MESSAGE_RECEIVED Event code for a push notification message receipt.
MOAINotificationsIOS.REMOTE_NOTIFICATION_RESULT_REGISTERED Error code for a successful notification registration.
MOAINotificationsIOS.REMOTE_NOTIFICATION_RESULT_UNREGISTERED Error code for a successful notification deregistration.
MOAINotificationsIOS.REMOTE_NOTIFICATION_RESULT_ERROR Error code for a failed notification registration or deregistration.
MOAINotificationsIOS.REMOTE_NOTIFICATION_NONE Notification type none.
MOAINotificationsIOS.REMOTE_NOTIFICATION_BADGE Notification type icon badges.
MOAINotificationsIOS.REMOTE_NOTIFICATION_SOUND Notification type sound.
MOAINotificationsIOS.REMOTE_NOTIFICATION_ALERT Notification type alerts.

Function Documentation

getAppIconBadgeNumber

Get the current icon badge number.


function getAppIconBadgeNumber ()

Returns
integer count
registerForRemoteNotifications

Register to receive remote notifications.


function registerForRemoteNotifications ( integer types )

Parameters
integertypes A mask of requested notification types. See Apple documentation.
Returns
nil
setAppIconBadgeNumber

Set the current icon badge number.


function setAppIconBadgeNumber ( integer count )

Parameters
integercount The count to set on the icon badge.
Returns
nil
unregisterForRemoteNotifications

Dregister for remote notifications.


function unregisterForRemoteNotifications ()

Returns
nil