QuickSettingsTileController

class QuickSettingsTileController(context: Context, radioController: RadioController, radioInterfaceService: RadioInterfaceService, radioPrefs: RadioPrefs, nodeRepository: NodeRepository, orchestrator: MeshServiceOrchestrator, appScope: ApplicationCoroutineScope)(source)

Backs MeshQuickSettingsTileService: publishes the tile's state and performs its taps on the application scope, so a tap's work outlives the tile service, which the system unbinds as soon as the shade closes.

Constructors

Link copied to clipboard
constructor(context: Context, radioController: RadioController, radioInterfaceService: RadioInterfaceService, radioPrefs: RadioPrefs, nodeRepository: NodeRepository, orchestrator: MeshServiceOrchestrator, appScope: ApplicationCoroutineScope)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun onClick(): Boolean

Performs a tap on the tile.

Link copied to clipboard

Asks the system to refresh the tile on every state change. Idempotent; runs for the life of the process.