Login

Login service for social service activity

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Functions

Link copied to clipboard
external fun checkNameAvailability(name: String, listener: ProgressListener): Int

Check for available map name

Link copied to clipboard
external fun deleteAccount(listener: ProgressListener): Int

Delete current logged account. All local data and cloud data will be removed

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
external fun getLoginIconList(): ImageList

Get available login icons

Link copied to clipboard
external fun getLoginTime(): Time

Get the current login session time

Link copied to clipboard
external fun getUserEmail(): String

Get current logged account email

Link copied to clipboard
external fun getUserFirstName(): String

Get current logged account first name

Link copied to clipboard
external fun getUserId(): Long

Get current logged account unique id

Link copied to clipboard
external fun getUserImage(): Image

Get current logged account image

Link copied to clipboard
external fun getUserImageId(): Int

Get current logged account image id

Link copied to clipboard
external fun getUserLastName(): String

Get current logged account last name

Link copied to clipboard
external fun getUserName(): String

Get current logged account name

Link copied to clipboard
external fun getUserPhone(): String

Get current logged account phone number

Link copied to clipboard

Get current logged account social credibility

Link copied to clipboard
external fun isLoggedIn(): Boolean

Check login state

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
external fun login(name: String, pwd: String, listener: ProgressListener): Int

Login user

Link copied to clipboard
external fun logout(): Int

Logout user

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
external fun registerAccount(name: String, pwd: String, firstName: String = "", lastName: String = "", phone: String = "", mail: String = "", iconId: Int = -1, listener: ProgressListener): Int

Register new user account

Link copied to clipboard
external fun registerExternalLogin(loginId: String, listener: ProgressListener): Int

Register external login

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
external fun setUserLoginData(firstName: String, lastName: String, phone: String, mail: String, iconId: Int, listener: ProgressListener): Int

Set current logged in user data