android-components / mozilla.components.service.fxa.manager / SyncEnginesStorage

SyncEnginesStorage

class SyncEnginesStorage (source)

Storage layer for the enabled/disabled state of SyncEngine.

Constructors

Name Summary
<init> SyncEnginesStorage(context: <ERROR CLASS>)
Storage layer for the enabled/disabled state of SyncEngine.

Functions

Name Summary
getStatus fun getStatus(): Map<SyncEngine, Boolean>
setStatus fun setStatus(engine: SyncEngine, status: Boolean): Unit
Update enabled/disabled state of engine.

Companion Object Properties

Name Summary
SYNC_ENGINES_KEY const val SYNC_ENGINES_KEY: String

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.