PebbleOS
Loading...
Searching...
No Matches
Functions

Phone call events derived from ANCS notifications. More...

Functions

void ancs_phone_call_handle_incoming (uint32_t uid, ANCSProperty properties, ANCSAttribute **notif_attributes)
 Post an incoming call event.
 
void ancs_phone_call_handle_removed (uint32_t uid, bool ios_9)
 Post a hide call event, in response to an ANCS removal.
 
bool ancs_phone_call_should_ignore_missed_calls (void)
 Check whether missed call notifications are being ignored.
 
void ancs_phone_call_temporarily_block_missed_calls (void)
 Ignore missed call notifications for a few seconds.
 

Detailed Description

Phone call events derived from ANCS notifications.

Function Documentation

◆ ancs_phone_call_handle_incoming()

void ancs_phone_call_handle_incoming ( uint32_t  uid,
ANCSProperty  properties,
ANCSAttribute **  notif_attributes 
)

Post an incoming call event.

Parameters
uidANCS UID of the incoming call notification.
propertiesANCS properties of the notification.
notif_attributesNotification attributes; the title holds the caller name or number.

◆ ancs_phone_call_handle_removed()

void ancs_phone_call_handle_removed ( uint32_t  uid,
bool  ios_9 
)

Post a hide call event, in response to an ANCS removal.

Parameters
uidANCS UID of the removed incoming call notification.
ios_9Whether the notification came from an iOS 9 or later device.

◆ ancs_phone_call_should_ignore_missed_calls()

bool ancs_phone_call_should_ignore_missed_calls ( void  )

Check whether missed call notifications are being ignored.

Returns
true within a few seconds of ancs_phone_call_temporarily_block_missed_calls(), so that declining a call does not produce a missed call notification.

◆ ancs_phone_call_temporarily_block_missed_calls()

void ancs_phone_call_temporarily_block_missed_calls ( void  )

Ignore missed call notifications for a few seconds.

Called when a call is dismissed from the phone UI.