You are reading 12.6.0. See this page in 13.4.1.
Titanium.App.iOS.UserNotificationCenter
Extends Titanium.ModuleTitanium.Proxy
The top-level App iOS Notification Center module. It is used to control scheduled notifications and receive details about the system-wide notification settings.
Properties 1
Inherited from Titanium.Proxy
The name of the API that this proxy corresponds to.
Methods 5
getDeliveredNotifications
since 7.3.0Fetches the delivered notifications asynchronously.
| Parameters | Type | Description |
|---|---|---|
| callback | Callback<UserNotificationCallbackResponse> | The function that is being called after the notifications have been fetched. 1 field
|
getPendingNotifications
since 7.3.0Fetches the pending notifications asynchronously.
| Parameters | Type | Description |
|---|---|---|
| callback | Callback<UserNotificationCallbackResponse> | The function that is being called after the notifications have been fetched. 1 field
|
removeDeliveredNotifications
since 7.3.0Removes the specified delivered notifications from the notification-center. If no notifications are specified, all delivered notifications will be removed.
Delivered notifications can be obtained via a call to the Titanium.App.iOS.UserNotificationCenter.getDeliveredNotifications method.
| Parameters | Type | Description |
|---|---|---|
| notifications | Array<UserNotificationDictionary> | The delivered notification to remove. If none specified, all pending notifications will be removed. |
removePendingNotifications
since 7.3.0Removes the specified pending notifications to prevent them from being triggered. If no notifications are specified, all pending notifications will be removed.
Pending notifications can be obtained via a call to the Titanium.App.iOS.UserNotificationCenter.getPendingNotifications method.
| Parameters | Type | Description |
|---|---|---|
| notifications | Array<UserNotificationDictionary> | The pending notification to remove. If none specified, all pending notifications will be removed. |
requestUserNotificationSettings
since 7.3.0Notification types and user notification categories the application is registered to use.
| Parameters | Type | Description |
|---|---|---|
| callback | Callback<GetUserNotificationSettings> | The callback invoked when requesting user notification settings. 12 fields
|