ServiceClientLiveData
class ServiceClientLiveData( methodId: Int, serviceHandler: CommunicationsServiceHandler, coroutineScope: CoroutineScope = MainScope()) : LiveData<ByteString?>
Content copied to clipboard
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())
Content copied to clipboard
Inherited functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun observe(@NonNull p0: LifecycleOwner, @NonNull p1: Observer<in ByteString?>)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard