StupidBeauty
Read times:1518Posted at:Tue Oct 1 19:47:06 2013
- no title specified

iOS开发文档翻译:苹果通知中心服务(ANCS)规范/附录,Apple Notification Center Service (ANCS) Specification/Appendix

附录

以下表格,列出了苹果通知中心服务中的那些重要常量值。

CategoryID值

表格 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

EventID值

表格 3-2 EventID值

EventIDNotificationAdded

= 0,

EventIDNotificationModified

= 1,

EventIDNotificationRemoved

= 2,

保留的EventID

= 3–255

EventFlags

表格 3-3 EventFlags

EventFlagSilent

= (1 << 0),

EventFlagImportant

= (1 << 1),

保留的EventFlags

= (1 << 2)–(1 << 7)

CommandID值

表格 3-4 CommandID值

CommandIDGetNotificationAttributes

= 0,

CommandIDGetAppAttributes

= 1,

保留的CommandID

= 2–255

NotificationAttributeID值

表格 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 字符串。

AppAttributeID值

表格 3-6 AppAttributeID值

AppAttributeIDDisplayName

= 0,

保留的AppAttributeID

= 1–255

未知美人

未知美人

未知美人

未知美人

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4