User

ProfileService API

Get the ProfileService object via a login session.

val profileService = session.profileService()

Set user nickname

Updates the user's display name.

suspend fun setDisplayName(userId: String, newDisplayName: String)

Input parameters:

Set user avatar

Updates the user's profile picture.

suspend fun updateAvatar(userId: String, newAvatarUri: Uri, fileName: String)

Input parameter:

Set user profile description

Sets a self-introduction for the user's profile.

suspend fun setProfileBio(userId: String, bio: String)

Input parameter:

Output parameter: None

Retrieve user profile

Get a user's profile data

suspend fun getProfile(userId: String): JsonDict

Input parameter:

Output parameter:

JsonDict fields:


AccountDataService API

Get the AccountDataService object through a login session

val accountDataService = session.accountDataService()

Set user account data

Sets custom data related to the user. content contains the complete data for the specified type.

suspend fun updateUserAccountData(type: String, content: Content)

Input parameter:

Output parameter: None

Retrieve user account data

fun getUserAccountDataEvent(type: String): UserAccountDataEvent?

Input parameter:

Output parameter: UserAccountDataEvent


UserService API

Get the UserService object via a login session.

val userService = session.userService()

Get the contact list

Retrieve the list of your contacts.

suspend fun getContacts(): List<ContactInfo>

Input parameters: None

Output parameter:

ContactInfo details:

Add a contact

Add a user to your contact list.

suspend fun addContact(contactId: String, tags: List<String> = listOf())

Input parameters:

Output parameter: None

Delete a contact

Remove a user from your contact list.

suspend fun removeContact(contactId: String)

Input parameters:

Output parameter: None

Last updated