|
PebbleOS
|
Pebble Protocol phone control endpoint (0x21). More...
Functions | |
| void | pp_answer_call (uint32_t cookie) |
| Ask the phone to answer a call. | |
| void | pp_decline_call (uint32_t cookie) |
| Ask the phone to decline or hang up a call. | |
| void | pp_get_phone_state (void) |
| Request the state of the phone's calls. | |
| void | pp_get_phone_state_set_enabled (bool enabled) |
| Enable or disable handling of Get Phone State responses. | |
Pebble Protocol phone control endpoint (0x21).
Sends call control commands to the phone over the system session. If no session exists, a call disconnect event is emitted instead.
| void pp_answer_call | ( | uint32_t | cookie | ) |
Ask the phone to answer a call.
| cookie | Call identifier from the phone event. |
| void pp_decline_call | ( | uint32_t | cookie | ) |
Ask the phone to decline or hang up a call.
| cookie | Call identifier from the phone event. |
| void pp_get_phone_state | ( | void | ) |
Request the state of the phone's calls.
| void pp_get_phone_state_set_enabled | ( | bool | enabled | ) |
Enable or disable handling of Get Phone State responses.
Used to ignore stray responses still in flight after the user declined the call from the watch.
| enabled | True to handle responses, false to drop them. |