Set/Update User Profile Data
Update user profile#
To update your profile call the below method.
- Java
- Kotlin
info
In profile object for image property set the absolute file path of a file if a image file needs to be uploaded or else set it to profile image id.
Refer this doc to know more about Profile Class
| Argument | Description | Data type |
|---|---|---|
PROFILE_OBJECT | Profile | Profile object which the updated value |
| CALLBACK | FlyCallback | FlyCallback implemented as as lambda expression |
Update user profile image#
To update your profile image, please use the following method. You can either send a file object containing the new image or provide a remote URL pointing to the image file
- Java
- Kotlin
| Argument | Type | Description |
|---|---|---|
| PROFILE_IMAGE_FILE | File | file object of the profile image optional |
| CALLBACK | FlyCallback | FlyCallback implemented as lambda expression |
| IMAGE_URL | String | URL of the profile image optional |
Refer Profile to know more about Profile class.
Remove user profile image#
To remove your profile image call the below method.
- Java
- Kotlin
| Argument | Type | Description |
|---|---|---|
| CALLBACK | FlyCallback | FlyCallback implemented as lambda expression |
Set User status#
User can set the status for their profile using the below method.
- Java
- Kotlin
| Argument | Type | Description |
|---|---|---|
| STATUS_TEXT | String | Status text cannot be longer than 140 characters |
| CALLBACK | FlyCallback | FlyCallback implemented as lambda expression |
Delete User status#
User can delete their user status by calling the below method.
- Java
- Kotlin
| Argument | Type | Description |
|---|---|---|
| USER_STATUS | ProfileStatus | Object of the profile status that has to be deleted |
caution
User cannot delete a status which is currently selected.
Enable/Disable User Busy status#
User can enable and disable their busy status using the below method.
- Java
- Kotlin
| Argument | Type | Description |
|---|---|---|
| ENABLE_BUSY_STATUS | boolean | true enables busy status and false disables busy status |
Set User Busy status#
User can set the busy status message for their one to one chat conversation using the below method.
- Java
- Kotlin
| Argument | Type | Description |
|---|---|---|
| BUSY_STATUS_TEXT | String | busy status text cannot be longer than 140 characters |
Get User Busy settings status#
User can get their busy settings status by calling the below method.
- Java
- Kotlin
Delete User Busy status#
User can delete their busy status by calling the below method.
- Java
- Kotlin
| Argument | Type | Description |
|---|---|---|
| USER_BUSY_STATUS | BusyStatus | Object of the user busy status that has to be deleted |
caution
User cannot delete a busy status which is currently selected.