|
PebbleOS
|
App identification and timestamp parsing for ANCS notifications. More...
Data Structures | |
| struct | ANCSAppMetadata |
| Presentation of a known iOS app. More... | |
Macros | |
| #define | IOS_PHONE_APP_ID "com.apple.mobilephone" |
| Bundle identifier of the iOS Phone app. | |
| #define | IOS_CALENDAR_APP_ID "com.apple.mobilecal" |
| Bundle identifier of the iOS Calendar app. | |
| #define | IOS_REMINDERS_APP_ID "com.apple.reminders" |
| Bundle identifier of the iOS Reminders app. | |
| #define | IOS_MAIL_APP_ID "com.apple.mobilemail" |
| Bundle identifier of the iOS Mail app. | |
| #define | IOS_SMS_APP_ID "com.apple.MobileSMS" |
| Bundle identifier of the iOS Messages app. | |
| #define | IOS_FACETIME_APP_ID "com.apple.facetime" |
| Bundle identifier of the iOS FaceTime app. | |
Functions | |
| const ANCSAppMetadata * | ancs_notifications_util_get_app_metadata (const ANCSAttribute *app_id) |
| Look up the presentation of an app. | |
| time_t | ancs_notifications_util_parse_timestamp (const ANCSAttribute *timestamp_attr) |
| Parse an ANCS date attribute. | |
| bool | ancs_notifications_util_is_phone (const ANCSAttribute *app_id) |
| Check whether an app identifier is the iOS Phone app. | |
| bool | ancs_notifications_util_is_sms (const ANCSAttribute *app_id) |
| Check whether an app identifier is the iOS Messages app. | |
| bool | ancs_notifications_util_is_group_sms (const ANCSAttribute *app_id, const ANCSAttribute *subtitle) |
| Check whether a notification is a group message. | |
App identification and timestamp parsing for ANCS notifications.
| struct ANCSAppMetadata |
Presentation of a known iOS app.
| #define IOS_CALENDAR_APP_ID "com.apple.mobilecal" |
Bundle identifier of the iOS Calendar app.
| #define IOS_FACETIME_APP_ID "com.apple.facetime" |
Bundle identifier of the iOS FaceTime app.
| #define IOS_MAIL_APP_ID "com.apple.mobilemail" |
Bundle identifier of the iOS Mail app.
| #define IOS_PHONE_APP_ID "com.apple.mobilephone" |
Bundle identifier of the iOS Phone app.
| #define IOS_REMINDERS_APP_ID "com.apple.reminders" |
Bundle identifier of the iOS Reminders app.
| #define IOS_SMS_APP_ID "com.apple.MobileSMS" |
Bundle identifier of the iOS Messages app.
| const ANCSAppMetadata * ancs_notifications_util_get_app_metadata | ( | const ANCSAttribute * | app_id | ) |
Look up the presentation of an app.
| app_id | App identifier attribute. |
| bool ancs_notifications_util_is_group_sms | ( | const ANCSAttribute * | app_id, |
| const ANCSAttribute * | subtitle | ||
| ) |
Check whether a notification is a group message.
| app_id | App identifier attribute. |
| subtitle | Subtitle attribute; group messages from the Messages app have one. |
| bool ancs_notifications_util_is_phone | ( | const ANCSAttribute * | app_id | ) |
Check whether an app identifier is the iOS Phone app.
| app_id | App identifier attribute, may be NULL. |
| bool ancs_notifications_util_is_sms | ( | const ANCSAttribute * | app_id | ) |
Check whether an app identifier is the iOS Messages app.
| app_id | App identifier attribute, may be NULL. |
| time_t ancs_notifications_util_parse_timestamp | ( | const ANCSAttribute * | timestamp_attr | ) |
Parse an ANCS date attribute.
The date is yyyyMMdd'T'HHmmSS in the phone's local time, which is assumed to match the watch's timezone.
| timestamp_attr | Date attribute. |