MqttWorkManager

class MqttWorkManager(context: Context)

Class that is responsible for WorkManager initialization for data synchronization with MqttClient

Constructors

Link copied to clipboard
constructor(context: Context)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun start(userId: Long, repeatIntervalDuration: Duration = 5.minutes, networkType: NetworkType = NetworkType.UNMETERED): Operation

TODO: support changing repeatIntervalDuration

Link copied to clipboard
suspend fun stop(): Operation