CommunicationsClientContext

class CommunicationsClientContext(    val context: Context,     val lifecycleOwner: LifecycleOwner,     val communicationsServiceFactory: CommunicationsServiceClientFactory,     val applicationProtocolHandlerFactory: ApplicationProtocolHandlerFactory = getDefaultApplicationProtocolHandlerFactory())

Provides context for a CommunicationsClient.

The specified communicationsServiceFactory will provide the meta-data that specifies which service the CommunicationsClient will attempt to connect to.

The specified applicationProtocolHandlerFactory is used to define a custom application level protocol handler for the client. Avoid using anything else than the default value for this.

See also

Constructors

Link copied to clipboard
fun CommunicationsClientContext(    context: Context,     lifecycleOwner: LifecycleOwner,     communicationsServiceFactory: CommunicationsServiceClientFactory,     applicationProtocolHandlerFactory: ApplicationProtocolHandlerFactory = getDefaultApplicationProtocolHandlerFactory())

Properties

Link copied to clipboard
Link copied to clipboard
val context: Context
Link copied to clipboard
val lifecycleOwner: LifecycleOwner
Link copied to clipboard
val serviceUuid: UUID

The globally unique ID for the remote service.