PebbleOS
Loading...
Searching...
No Matches
Functions
Debounced connection service

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.
 

Detailed Description

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.

Function Documentation

◆ debounced_connection_service_handle_event()

void debounced_connection_service_handle_event ( PebbleCommSessionEvent *  e)

Handle a comm session open or close event.

Parameters
eComm session event.

◆ debounced_connection_service_init()

void debounced_connection_service_init ( void  )

Initialize the service from the current connection state.