IviServiceDirectConnectionData

class IviServiceDirectConnectionData<T>(    val serviceId: IviServiceId,     val connectionScope: CoroutineScope,     serviceProvider: () -> T) : IviServiceConnectionData

Data to construct the IviServiceDirectConnectionBase class.

Parameters

T

The <Interface>Base class.

serviceId

ID of the service.

connectionScope

Coroutine scope of the service connection. Canceled on disconnect.

serviceProvider

Callback to obtain the service instance.

Constructors

Link copied to clipboard
fun <T> IviServiceDirectConnectionData(    serviceId: IviServiceId,     connectionScope: CoroutineScope,     serviceProvider: () -> T)

Properties

Link copied to clipboard
val service: T

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.