NotificationServices 仅适用于 iPhone/iPad/iPod Touch。
用于安排、注册和处理通知。
| deviceToken | 调用 NotificationServices.RegisterForRemoteNotificationTypes 后,从 Apple Push Service 收到的设备令牌。(只读) |
| enabledNotificationTypes | 启用的本地通知和远程通知的类型。 |
| localNotificationCount | 收到的本地通知数。(只读) |
| localNotifications | 一个对象(表示收到的本地通知)列表。(只读) |
| registrationError | 返回通过 NotificationServices.RegisterForRemoteNotificationTypes 注册远程通知时可能发生的错误。(只读) |
| remoteNotificationCount | 收到的远程通知数。(只读) |
| remoteNotifications | 一个对象(表示收到的远程通知)列表。(只读) |
| scheduledLocalNotifications | 所有当前安排的本地通知。 |
| CancelAllLocalNotifications | 取消发送所有已安排的本地通知。 |
| CancelLocalNotification | 取消发送指定的预定本地通知。 |
| ClearLocalNotifications | 丢弃所有收到的本地通知。 |
| ClearRemoteNotifications | 丢弃所有收到的远程通知。 |
| GetLocalNotification | 返回表示特定本地通知的对象。(只读) |
| GetRemoteNotification | 返回表示特定远程通知的对象。(只读) |
| PresentLocalNotificationNow | 立即提供本地通知。 |
| RegisterForNotifications | 注册以通过 Apple Push Service 从提供程序接收指定类型的本地和远程通知。 |
| ScheduleLocalNotification | 安排本地通知。 |
| UnregisterForRemoteNotifications | 取消注册远程通知。 |