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.

context must be either the application context or the Android service context.

See also

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The globally unique ID for the remote service.