PebbleOS
Loading...
Searching...
No Matches
Functions
Timeline action endpoint

Pebble Protocol endpoint 0x2cb0 for actions executed by the phone. More...

Functions

void timeline_action_endpoint_invoke_action (const Uuid *id, TimelineItemActionType type, uint8_t action_id, const AttributeList *attributes, bool do_async)
 Ask the phone to invoke an action.
 
void timeline_action_endpoint_send_displayed_item (const Uuid *id)
 Tell the phone which notification the watch is displaying.
 
void timeline_action_endpoint_protocol_msg_callback (CommSession *session, const uint8_t *data, size_t length)
 Handle a message from the phone on the timeline action endpoint.
 

Detailed Description

Pebble Protocol endpoint 0x2cb0 for actions executed by the phone.

The watch sends invoke action requests; the phone answers with a response that is posted as a PebbleSysNotificationActionResult.

Function Documentation

◆ timeline_action_endpoint_invoke_action()

void timeline_action_endpoint_invoke_action ( const Uuid *  id,
TimelineItemActionType  type,
uint8_t  action_id,
const AttributeList *  attributes,
bool  do_async 
)

Ask the phone to invoke an action.

Parameters
idId of the pin or notification.
typeType of the action; ANCS response and generic actions use the ANCS variant of the command.
action_idId of the action.
attributesExtra attributes to send (e.g. the reply text), may be NULL.
do_asynctrue to send from KernelBG, false to send from the current task.

◆ timeline_action_endpoint_protocol_msg_callback()

void timeline_action_endpoint_protocol_msg_callback ( CommSession *  session,
const uint8_t *  data,
size_t  length 
)

Handle a message from the phone on the timeline action endpoint.

Parameters
sessionSession the message arrived on.
dataMessage.
lengthLength of data in bytes.

◆ timeline_action_endpoint_send_displayed_item()

void timeline_action_endpoint_send_displayed_item ( const Uuid *  id)

Tell the phone which notification the watch is displaying.

Only sent to phones with CommSessionNotificationWindowStateSupport.

Parameters
idId of the displayed notification, or NULL when none is displayed.