Set/Update User Profile Data
#
ProfileDetailsEvery 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 infoTo 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 imageTo 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 ImageTo remove your profile image call the below method.
Argument | Type | Description |
---|---|---|
CALLBACK | FlyCompletionHandler | FlyCompletionHandler used as completion Handler |
#
Create user profile statusUser 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 |
#
Update user profile statusUser 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 |
#
Enable/Disable User Busy statusUser can enable and disable their busy status using the below method.
Argument | Type | Description |
---|---|---|
ENABLE_BUSY_STATUS | Bool | true enables busy status and false disables busy status |
#
Set User Busy statusUser can set the busy status message for their one to one chat conversation using the below method.
Argument | Type | Description |
---|---|---|
BUSY_STATUS_TEXT | String | busy status text cannot be longer than 140 characters |
#
Delete a user Busy StatusUser can delete their busy status by calling the below method.
Argument | Type | Description |
---|---|---|
STATUS_ID | String | Object of the user busy status that has to be deleted |
caution
User cannot delete a busy status which is currently selected.