|
Chat Android SDK
4.2.9
|
Classes | |
| enum | UpdateReason |
| Indicates reason for user info update. More... | |
Public Member Functions | |
Getters | |
| native String | getFriendlyName () |
| Method that returns the friendlyName from the user info. More... | |
| JSONObject | getAttributes () |
| Custom attributes associated with the user info. More... | |
| native String | getIdentity () |
| Returns the identity of the user. More... | |
| native boolean | isOnline () |
| Return user's online status, if available. More... | |
| native boolean | isNotifiable () |
| Return user's push reachability. More... | |
| native boolean | isSubscribed () |
| Check if this user receives real-time status updates. More... | |
Setters | |
| void | setFriendlyName (String friendlyName, StatusListener listener) |
| Updates the friendly name for this user info. More... | |
| void | setAttributes (JSONObject attributes, StatusListener listener) |
| Set attributes associated with this user. More... | |
Actions | |
| native void | unsubscribe () |
| Unsubscribe from this user, freeing up resources. More... | |
User info object.
| JSONObject com.twilio.chat.User.getAttributes | ( | ) |
Custom attributes associated with the user info.
| native String com.twilio.chat.User.getFriendlyName | ( | ) |
Method that returns the friendlyName from the user info.
| native String com.twilio.chat.User.getIdentity | ( | ) |
Returns the identity of the user.
| native boolean com.twilio.chat.User.isNotifiable | ( | ) |
Return user's push reachability.
| native boolean com.twilio.chat.User.isOnline | ( | ) |
Return user's online status, if available.
| native boolean com.twilio.chat.User.isSubscribed | ( | ) |
Check if this user receives real-time status updates.
| void com.twilio.chat.User.setAttributes | ( | JSONObject | attributes, |
| StatusListener | listener | ||
| ) |
Set attributes associated with this user.
| attributes | The new developer-provided attributes for this user. |
| listener | Listener that will receive callback with the result. |
| void com.twilio.chat.User.setFriendlyName | ( | String | friendlyName, |
| StatusListener | listener | ||
| ) |
Updates the friendly name for this user info.
| friendlyName | updated friendly name. |
| listener | Listener that will receive callback with the result. |
| native void com.twilio.chat.User.unsubscribe | ( | ) |
Unsubscribe from this user, freeing up resources.
User will no longer receive real-time status updates.