IviServiceConnectionBase
abstract class IviServiceConnectionBase<P, PO : IviServicePropertiesObserver>(connectionData: IviServiceConnectionData) : IviServiceConnection<P, PO> , LifecycleOwner
Content copied to clipboard
Base class for any <Interface>Connection
interface implementation.
The coroutineDispatcher
should enforce that all launched coroutines are executed in sequence. In other words, coroutines need to be executed on the same thread.
Parameters
P
The <Interface>Property
class of the IVI service.
PO
The <Interface>PropertiesObserver
interface of the IVI service.
connectionData
The connection data for this connection.
Constructors
Properties
Inherited properties
Functions
Link copied to clipboard
Should be called after the IviServiceConnection instance is constructed.
Link copied to clipboard
Called when the connection is disconnected or about to be disconnected.
Link copied to clipboard
Inherited functions
Link copied to clipboard
abstract suspend fun setPropertiesObserver(lifecycleOwner: LifecycleOwner, propertiesObserver: PO)
Content copied to clipboard
Registers the givens propertiesObserver for a given lifecycleOwner.