以下表格,列出了苹果通知中心服务中的那些重要常量值。
表格 3-1 CategoryID值
CategoryIDOther |
= 0, |
CategoryIDIncomingCall |
= 1, |
CategoryIDMissedCall |
= 2, |
CategoryIDVoicemail |
= 3, |
CategoryIDSocial |
= 4, |
CategoryIDSchedule |
= 5, |
CategoryIDEmail |
= 6, |
CategoryIDNews |
= 7, |
CategoryIDHealthAndFitness |
= 8, |
CategoryIDBusinessAndFinance |
= 9, |
CategoryIDLocation |
= 10, |
CategoryIDEntertainment |
= 11, |
保留的CategoryID 值 |
= 12–255 |
表格 3-2 EventID值
EventIDNotificationAdded |
= 0, |
EventIDNotificationModified |
= 1, |
EventIDNotificationRemoved |
= 2, |
保留的EventID 值 |
= 3–255 |
表格 3-3 EventFlags
EventFlagSilent |
= (1 << 0), |
EventFlagImportant |
= (1 << 1), |
保留的EventFlags |
= (1 << 2)–(1 << 7) |
表格 3-4 CommandID值
CommandIDGetNotificationAttributes |
= 0, |
CommandIDGetAppAttributes |
= 1, |
保留的CommandID 值 |
= 2–255 |
表格 3-5 NotificationAttributeID值
NotificationAttributeIDAppIdentifier |
= 0, |
NotificationAttributeIDTitle |
= 1, (需要附上一个2字节长的最大长度参数) |
NotificationAttributeIDSubtitle |
= 2, (需要附上一个2字节长的最大长度参数) |
NotificationAttributeIDMessage |
= 3, (需要附上一个2字节长的最大长度参数) |
NotificationAttributeIDMessageSize |
= 4, |
NotificationAttributeIDDate |
= 5, |
保留的NotificationAttributeID 值 |
= 6–255 |
注意: NotificationAttributeIDMessageSize 常量的格式,是一个字符串,表示的是消息尺寸的整数值。NotificationAttributeIDDate 常量的格式,是一个字符串,使用的是统一码技术标准(UTS)35 号的日期格式模式 yyyyMMdd'T'HHmmSS 。表格3-5 中其它常量的格式都是UTF-8 字符串。
表格 3-6 AppAttributeID值
AppAttributeIDDisplayName |
= 0, |
保留的AppAttributeID 值 |
= 1–255 |
未知美人
未知美人
未知美人
未知美人
HxLauncher: Launch Android applications by voice commands