configure

open suspend override fun configure(appContext: Context, authorizationMethod: AuthorizationMethod, environment: Environment, logLevel: LogLevel)

Method required to be called before any further manipulation with the SDK.

The configuration persists at the runtime, so it's enough to call this method only once in one process. Use isConfigured field to determine if SDK was configured or not.

Parameters

appContext

Application context

authorizationMethod

Authorization method required for authorized operations. See AuthorizationMethod

environment

(optional) Servers environment. See Environment

logLevel

(optional) Logging level for logger. Logs are disabled by default. See LogLevel