PebbleOS v4.47.0-512-g5285d4236
Loading...
Searching...
No Matches
ancs_notifications_util.h File Reference
#include <string.h>
#include <time.h>
#include <pbl/bluetooth/ancs.h>
#include <applib/graphics/gtypes.h>

Data Structures

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

static void ancs_attr_to_cstring (const struct pbl_bt_ancs_attr *attr, char *str)
 Copy the value of an attribute as a string.
 
static bool ancs_attr_equal_cstring (const struct pbl_bt_ancs_attr *attr, const char *str)
 Whether the value of an attribute is a string; false if either is NULL.
 
static bool ancs_attr_equal (const struct pbl_bt_ancs_attr *a, const struct pbl_bt_ancs_attr *b)
 Whether two attributes have the same value; false if either is NULL.
 
const ANCSAppMetadata * ancs_notifications_util_get_app_metadata (const struct pbl_bt_ancs_attr *app_id)
 Look up the presentation of an app.
 
time_t ancs_notifications_util_parse_timestamp (const struct pbl_bt_ancs_attr *timestamp_attr)
 Parse an ANCS date attribute.
 
bool ancs_notifications_util_is_phone (const struct pbl_bt_ancs_attr *app_id)
 Check whether an app identifier is the iOS Phone app.
 
bool ancs_notifications_util_is_sms (const struct pbl_bt_ancs_attr *app_id)
 Check whether an app identifier is the iOS Messages app.
 
bool ancs_notifications_util_is_group_sms (const struct pbl_bt_ancs_attr *app_id, const struct pbl_bt_ancs_attr *subtitle)
 Check whether a notification is a group message.