ServiceClientLiveData
class ServiceClientLiveData(methodId: Int, serviceHandler: CommunicationsServiceHandler, coroutineScope: CoroutineScope = MainScope()) : LiveData<ByteString?>
Remote live data client.
When the first observer is added, instances of this class will automatically open a streaming method call to the specified methodId on the specified serviceHandler. When the last observer if removed it will cancel the streaming call.
Values returned by the streaming method call will be made available as the observed value.
Constructors
Link copied to clipboard
constructor(methodId: Int, serviceHandler: CommunicationsServiceHandler, coroutineScope: CoroutineScope = MainScope())