configure
fun configure(context: Context, serverUrl: URL, logger: SippoLogger = SippoLogger.Builder().build(), onCompletion: (SippoResourceError?) -> Unit)
Creates and configures a new Sippo client instance. If another instance exists, it will continue alive until an explicit logout is made. Also, after an explicit logout, the current instance is no longer valid and a new one needs to be configured.
Parameters
context
Application context.
server Url
Server URL.
logger
SippoLogger instance used for logging. Pass a custom implementation for specific logging behavior. If not provided, a default SippoLogger will be used.
on Completion
Callback that will be invoked when the request is completed. It will receive a SippoResourceError in case of an error.