register

fun register(    username: String,     email: String,     password: String,     callback: RegisterCallback,     acceptConsent: Boolean? = null,     promoEmailAgreement: Int? = null,     locale: String? = null)

Creates a new user account in the application and sends a sign-up confirmation email to the specified email address. To complete registration, the user must follow the link from the email.

See also

Parameters

username

Username.

email

User email.

password

Password.

callback

Status callback.

acceptConsent

Whether the user gave consent to processing of their personal data.

promoEmailAgreement

Whether the user gave consent to receive the newsletters.

locale

Defines localization of the email the user receives. The following languages are supported: Arabic (ar_AE), Bulgarian (bg_BG), Czech (cz_CZ), German (de_DE), Spanish (es_ES), French (fr_FR), Hebrew (he_IL), Italian (it_IT), Japanese (ja_JP), Korean (ko_KR), Polish (pl_PL), Portuguese (pt_BR), Romanian (ro_RO), Russian (ru_RU), Thai (th_TH), Turkish (tr_TR), Vietnamese (vi_VN), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), English (en_XX, default).

Sources

Link copied to clipboard