|
PebbleOS
|
Hides short phone disconnections from apps. More...
Functions | |
| void | debounced_connection_service_init (void) |
| Initialize the service from the current connection state. | |
| void | debounced_connection_service_handle_event (PebbleCommSessionEvent *e) |
| Handle a comm session open or close event. | |
Hides short phone disconnections from apps.
Tracks the connection to the mobile app (system session) and to third-party apps using PebbleKit. Connections are reported right away with a PBL_BT_PEBBLE_CONNECTION_DEBOUNCED_EVENT, but a disconnection is only reported, with the disconnection vibe, if the connection is not restored within 25 seconds. This makes the connection appear more reliable.
| void debounced_connection_service_handle_event | ( | PebbleCommSessionEvent * | e | ) |
Handle a comm session open or close event.
| e | Comm session event. |
| void debounced_connection_service_init | ( | void | ) |
Initialize the service from the current connection state.