PebbleOS
Loading...
Searching...
No Matches
Functions
App session capability cache

Per-app cache of app session capabilities, persisted in a settings file. More...

Functions

bool comm_session_current_app_session_cache_has_capability (CommSessionCapability capability)
 Check whether the current app's session supports a capability.
 
void comm_session_app_session_capabilities_evict (const Uuid *app_uuid)
 Remove the cached capabilities of an app.
 
void comm_session_app_session_capabilities_init (void)
 Initialize the cache, compacting its settings file.
 

Detailed Description

Per-app cache of app session capabilities, persisted in a settings file.

Function Documentation

◆ comm_session_app_session_capabilities_evict()

void comm_session_app_session_capabilities_evict ( const Uuid *  app_uuid)

Remove the cached capabilities of an app.

Parameters
app_uuidUUID of the app.

◆ comm_session_app_session_capabilities_init()

void comm_session_app_session_capabilities_init ( void  )

Initialize the cache, compacting its settings file.

◆ comm_session_current_app_session_cache_has_capability()

bool comm_session_current_app_session_cache_has_capability ( CommSessionCapability  capability)

Check whether the current app's session supports a capability.

When the app session is connected its capabilities are used and the cache is refreshed; otherwise the cached value is used.

Parameters
capabilityCapability to look for.
Returns
True if supported; false if not, or if disconnected with nothing cached.