IviServiceBinderConnectionBase

Base class for <Interface>BinderConnection classes.

Parameters

B

<Interface>BinderInterface class.

P

<Interface>Properties class.

PO

<Interface>PropertiesObserver interface.

connectionData

The connection data for this connection.

Constructors

Link copied to clipboard
constructor(connectionData: IviServiceBinderConnectionData)

Properties

Link copied to clipboard

Mirrored lifecycle state of the IVI service.

Inherited properties

Link copied to clipboard
open override val lifecycle: Lifecycle
Link copied to clipboard
open override val scope: CoroutineScope

Coroutine scope of the service. Canceled on disconnect.

Functions

Link copied to clipboard
open suspend override fun setPropertiesObserver(lifecycleOwner: LifecycleOwner, propertiesObserver: PO)

Registers the givens propertiesObserver for a given lifecycleOwner.

Inherited functions

Link copied to clipboard
suspend override fun connect()

Should be called after the IviServiceConnection instance is constructed.

Link copied to clipboard
suspend override fun disconnect()

Called when the connection is disconnected or about to be disconnected.