IviServiceBinderConnectionData

class IviServiceBinderConnectionData(    val serviceId: IviServiceId,     val connectionScope: CoroutineScope,     val syncBinderTransactionScope: CoroutineScope,     acquireAndReleaseInterface: IviServiceBinderConnectionData.AcquireAndReleaseInterface,     val ipcMessageDispatchFailureListener: IpcMessageDispatchFailureListener) : IviServiceConnectionData

Data to construct the IviServiceBinderConnectionBase class.

Parameters

serviceId

ID of the service.

connectionScope

Coroutine scope of the service connection. Canceled on disconnect.

syncBinderTransactionScope

Scope to use for sync binder transactions.

acquireAndReleaseInterface

The interface for acquiring and releasing service interfaces.

ipcMessageDispatchFailureListener

Called on message dispatch failures.

Constructors

Link copied to clipboard
fun IviServiceBinderConnectionData(    serviceId: IviServiceId,     connectionScope: CoroutineScope,     syncBinderTransactionScope: CoroutineScope,     acquireAndReleaseInterface: IviServiceBinderConnectionData.AcquireAndReleaseInterface,     ipcMessageDispatchFailureListener: IpcMessageDispatchFailureListener)

Types

Link copied to clipboard
interface AcquireAndReleaseInterface

Properties

Link copied to clipboard
val syncBinderTransactionScope: CoroutineScope

Inherited properties

Link copied to clipboard
val connectionScope: CoroutineScope

Coroutine scope of the service connection. Canceled on disconnect. The dispatcher can be different per connection (type).

Link copied to clipboard
val serviceId: IviServiceId

ID of the service.

Functions

Link copied to clipboard
fun acquireServiceInterfaceBinder(): IBinder

Acquires the IVI service interface.

Link copied to clipboard
fun releaseServiceInterfaceBinder()

Releases the IVI service interface.