login

open fun login(    @NonNull context: Context,     loginType: Int,     @NonNull linkOrActivationCode: String,     @Nullable completionCallback: CompletionCallback)

Parameters

context

Context: The application context.

loginType
linkOrActivationCode

String: the activation code in case the login type is :

ACTIVATION_CODE_SENT_BY_SMS_OR_EMAILACTIVATION_CODE_PROVIDED_BY_ADMINISTRATOROtherwise the link sent by SMS or email.

Pay attention to send a correct link to avoid having MalformedURLException.

Please note that the link should start with host name configured in environment part, please see setHostNameUrl

completionCallback

CompletionCallback: A callback to be implemented in order to receive information about the login process.Please see CompletionCallback

Throws

,IllegalArgumentExceptionif no protocol is specified, or an unknown protocol is found, or the provided linkOrActivationCode is empty or null.


open fun login(    @NonNull context: Context,     loginType: Int,     @NonNull linkOrActivationCode: String,     isFromNFC: Boolean,     @Nullable completionCallback: CompletionCallback)

Parameters

context

Context: The application context.

loginType
linkOrActivationCode

String: the activation code in case the login type is :

ACTIVATION_CODE_SENT_BY_SMS_OR_EMAILACTIVATION_CODE_PROVIDED_BY_ADMINISTRATOROtherwise the link sent by SMS or email.

Pay attention to send a correct link to avoid having MalformedURLException.

Please note that the link should start with host name configured in environment part, please see setHostNameUrl

isFromNFC

Boolean: true when the login is issued from NFC, false otherwise

completionCallback

CompletionCallback: A callback to be implemented in order to receive information about the login process.Please see CompletionCallback

Throws

,IllegalArgumentExceptionif no protocol is specified, or an unknown protocol is found, or the provided linkOrActivationCode is empty or null.