Set/Update User Profile Data
ProfileDetails#
Every single chat contact has been modelled after ProfileDetails class. It holds the data of a user name, display picture, whether you blocked them or not etc. Refer this doc to know more about ProfileDetails Class .
Update your profile info#
To update your profile call the below method.
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.
| Argument | Type | Description |
|---|---|---|
PROFILE_OBJECT | Profile | Profile object which the updated value |
| CALLBACK | FlyCallback | FlyCallback implemented as as lambda expression |
Update profile image#
To update your profile image call the below method.
| Argument | Type | Description |
|---|---|---|
| IMAGE | String | ImageURL of the profile image, URL can be local path or remote url |
| CALLBACK | FlyCompletionHandler | FlyCompletionHandler used as completion Handler |
Remove Profile Image#
To remove your profile image call the below method.
| Argument | Type | Description |
|---|---|---|
| CALLBACK | FlyCompletionHandler | FlyCompletionHandler used as completion Handler |
Create user profile status#
User can create the status for their profile using the below method.
| Argument | Type | Description |
|---|---|---|
| STATUSTEXT | String | statusText of the current status |
| CURRENTSTATUS | Bool | currentStatus of the selected status |
| completion | FlyCompletionHandler | used as completion Handler for getting status |
Update user profile status#
User can set the status for their profile using the below method.
| Argument | Type | Description |
|---|---|---|
| STATUSID | String | statusId of the status |
| STATUSTEXT | String | statusText of the current status |
| CURRENTSTATUS | Bool | currentStatus of the selected status |
| completion | FlyCompletionHandler | used as completion Handler for getting status |