getConnectionManager

abstract fun <T : IviServiceConnectionManager<C, LP>, C : IviServiceConnection<P, PO>, P : Any, PO : IviServicePropertiesObserver, LP : Any> getConnectionManager(    connectionInterfaceClass: KClass<C>,     propertiesClass: KClass<P>,     propertiesObserverInterfaceClass: KClass<PO>,     liveDataPropertiesClass: KClass<LP>,     serviceId: IviServiceId): T?

Obtains the service connection manager for a service ID and a connection manager type.

To obtain a service connection manager, the connection manager for the service needs to be available. Also, the type of the service connection manager (based on C, P and PO) needs to match with the available service connection manager type.

Generic types of this function:

Return

A connection manager implementation of type T or null when no connection manager is available for the given service ID or on type mismatch.

Parameters

T

IviServiceConnectionManagerBase type parameterized by C, P and PO.

C

The <Interface>Connection interface of the service.

P

The <Interface>Properties interface of the service.

PO

The <Interface>PropertiesObserver interface of the service.

serviceId

The ID of the service to get.

connectionInterfaceClass

Class type C.

propertiesClass

Class type P.

propertiesObserverInterfaceClass

Class type PO.