# Titanium.App.iOS.UserNotificationCenter
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
# apiName READONLY
The name of the API that this proxy corresponds to.
The value of this property is the fully qualified name of the API. For example, Titanium.UI.Button
returns Ti.UI.Button
.
# Methods
# getDeliveredNotifications
Fetches the delivered notifications asynchronously.
Parameters
Name | Type | Description |
---|---|---|
callback | Callback<UserNotificationCallbackResponse> | The function that is being called after the notifications have been fetched. |
Returns
- Type
- void
# getPendingNotifications
Fetches the pending notifications asynchronously.
Parameters
Name | Type | Description |
---|---|---|
callback | Callback<UserNotificationCallbackResponse> | The function that is being called after the notifications have been fetched. |
Returns
- Type
- void
# removeDeliveredNotifications
Removes 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 getDeliveredNotifications method.
Parameters
Name | Type | Description |
---|---|---|
notifications | Array<UserNotificationDictionary> | The delivered notification to remove. If none specified, all pending notifications will be removed. |
Returns
- Type
- void
# removePendingNotifications
Removes 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 getPendingNotifications method.
Parameters
Name | Type | Description |
---|---|---|
notifications | Array<UserNotificationDictionary> | The pending notification to remove. If none specified, all pending notifications will be removed. |
Returns
- Type
- void
# requestUserNotificationSettings
Notification types and user notification categories the application is registered to use.
Parameters
Name | Type | Description |
---|---|---|
callback | Callback<GetUserNotificationSettings> | The callback invoked when requesting user notification settings. |
Returns
- Type
- void