init

fun init(sdkApiKey: String, email: String? = null, phoneNumber: String? = null): ResultS1SDK<Boolean, ErrorS1SDK>

Initializes the SDK configuration to start using all the SDK features for an specific user operator. Note that you required to previously create the user operator account.

  • Note: If you need to change the user operator, you need to call this function again.

Return

A ResultS1SDK with a Boolean that indicates if the configuration was successful. If the configuration fails, an ErrorS1SDK with the error information is returned.

Parameters

sdkApiKey

String The API key of the SDK.

email

String The user email. Null by default.

phoneNumber

String The user phone number. Null by default.