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
fun ServiceClientLiveData(    methodId: Int,     serviceHandler: CommunicationsServiceHandler,     coroutineScope: CoroutineScope = MainScope())

Inherited functions

Link copied to clipboard
open fun getValue(): ByteString?
Link copied to clipboard
open fun hasActiveObservers(): Boolean
Link copied to clipboard
open fun hasObservers(): Boolean
Link copied to clipboard
open fun observe(@NonNull p0: LifecycleOwner, @NonNull p1: Observer<in ByteString?>)
Link copied to clipboard
open fun observeForever(@NonNull p0: Observer<in ByteString?>)
Link copied to clipboard
open fun removeObserver(@NonNull p0: Observer<in ByteString?>)
Link copied to clipboard
open fun removeObservers(@NonNull p0: LifecycleOwner)