PebbleOS v4.47.0-757-g12b6c531f
Loading...
Searching...
No Matches
ancs.h File Reference

The session with the Apple Notification Center Service of the phone: it queues the notifications the ANCS client reports, gets their attributes and hands them to the notification services. More...

#include <stdint.h>

Enumerations

enum  ANCSClientState {
  ANCSClientStateIdle = 0 , ANCSClientStateRequestedNotification , ANCSClientStatePerformingAction , ANCSClientStateRequestedApp ,
  ANCSClientStateAliveCheck , ANCSClientStateRetrying
}
 

Functions

void ancs_create (uint16_t conn_handle)
 Starts a session on the connection of the phone: looks for the service, and subscribes to it when the phone has it.
 
void ancs_destroy (void)
 Ends the session.
 
void ancs_handle_services_changed (void)
 The services of the phone changed: looks for the service again.
 
void ancs_perform_action (uint32_t notification_uid, uint8_t action_id)
 Performs an action on a notification, an enum pbl_bt_ancs_action. Any task.
 

Detailed Description

The session with the Apple Notification Center Service of the phone: it queues the notifications the ANCS client reports, gets their attributes and hands them to the notification services.

KernelMain only.

Enumeration Type Documentation

◆ ANCSClientState

Enumerator
ANCSClientStateIdle 
ANCSClientStateRequestedNotification 
ANCSClientStatePerformingAction 
ANCSClientStateRequestedApp 
ANCSClientStateAliveCheck 
ANCSClientStateRetrying 

Function Documentation

◆ ancs_create()

void ancs_create ( uint16_t  conn_handle)

Starts a session on the connection of the phone: looks for the service, and subscribes to it when the phone has it.

◆ ancs_destroy()

void ancs_destroy ( void  )

Ends the session.

◆ ancs_handle_services_changed()

void ancs_handle_services_changed ( void  )

The services of the phone changed: looks for the service again.

◆ ancs_perform_action()

void ancs_perform_action ( uint32_t  notification_uid,
uint8_t  action_id 
)

Performs an action on a notification, an enum pbl_bt_ancs_action. Any task.