invoke
suspend operator fun invoke(context: Context, config: SocketFactoryConfiguration, logger: Logger = LoggerNoop): ChatBuilder
Returns an instance of ChatBuilder with Android specific parameters.
This is a suspend function that performs I/O for HTTP client setup. Java callers must use ChatBuilderJavaInterop.getDefaultBlocking(...) or ChatBuilderJavaInterop.getDefaultAsync(...) from the chat-sdk-core-java module.
Parameters
context
The Context used for persistent storage of values by the SDK.
config
SocketFactoryConfiguration connection configuration of the chat.
logger
Logger which will be used by the builder and the SDK, default is no-op implementation.