create

fun create(configuration: SocketFactoryConfiguration?, authorization: Authorization? = null, userName: UserName? = null, developmentMode: Boolean = false, deviceTokenProvider: ChatInstanceProvider.DeviceTokenProvider? = null, logger: Logger = LoggerNoop, customerId: String? = null): ChatInstanceProvider

Create the ChatInstanceProvider singleton.

Return

the newly created ChatInstanceProvider singleton.

Parameters

configuration

Initial Sdk Configuration to use.

authorization

Initial authorization to use.

userName

Initial user name to use.

developmentMode

True if in development mode to get extra logging.

deviceTokenProvider

Provider of device tokens for push messages.

logger

Logger to be used by the ChatInstanceProvider and Chat.

customerId

Optional, customerId of the user.