createDsLogin

fun createDsLogin(context: Context, dsApplication: DsApplication, callBackUrl: String, environment: DsEnvironment = DsEnvironment.Production, retainSession: Boolean = false, debug: Boolean = false): DsLogin

Creates an instance of DsLogin.

Return

An instance of DsLogin.

Parameters

context

The context of the application.

dsApplication

The DsApplication object that contains the application id and domain.

callBackUrl

The url that the user will be redirected to after a successful login.

environment

The environment that the SDK should use.

retainSession

If set to true, the SDK will keep the session between app restarts.

debug

If set to true, the SDK will log all network requests.

See also