|
Agora Java API Reference for Android
|
Public Member Functions | |
| abstract void | whoNow (String channelName, RtmChannelType channelType, PresenceOptions options, ResultCallback< WhoNowResult > resultCallback) |
| abstract void | whereNow (String userId, ResultCallback< ArrayList< ChannelInfo >> resultCallback) |
| abstract void | getOnlineUsers (String channelName, RtmChannelType channelType, GetOnlineUsersOptions options, ResultCallback< GetOnlineUsersResult > resultCallback) |
| abstract void | getUserChannels (String userId, ResultCallback< ArrayList< ChannelInfo >> resultCallback) |
| abstract void | setState (String channelName, RtmChannelType channelType, Map< String, String > items, ResultCallback< Void > resultCallback) |
| abstract void | removeState (String channelName, RtmChannelType channelType, ArrayList< String > keys, ResultCallback< Void > resultCallback) |
| abstract void | getState (String channelName, RtmChannelType channelType, String userId, ResultCallback< UserState > resultCallback) |
The RtmPresence class.
This class provides the rtm presence methods that can be invoked by your app.
|
abstract |
To query who joined this channel
| channelName | The name of the channel. |
| channelType | The type of the channel. |
| options | The query option. |
| resultCallback | A ResultCallback object.
|
|
abstract |
To query which channels the user joined
| userId | The id of the user. |
| resultCallback | A ResultCallback object.
|
|
abstract |
To query who joined this channel
| channelName | The name of the channel. |
| channelType | The type of the channel. |
| options | The query option. |
| resultCallback | A ResultCallback object.
|
|
abstract |
To query which channels the user joined or subscribed
| userId | The id of the user. |
| resultCallback | A ResultCallback object.
|
|
abstract |
Set user state
| channelName | The name of the channel. |
| channelType | The type of the channel. |
| items | The states item of user. |
| resultCallback | A ResultCallback object.
|
|
abstract |
Delete user state
| channelName | The name of the channel. |
| channelType | The type of the channel. |
| keys | The keys of state item. |
| resultCallback | A ResultCallback object.
|
|
abstract |
Get user state
| channelName | The name of the channel. |
| channelType | The type of the channel. |
| userId | The id of the user. |
| resultCallback | A ResultCallback object.
|
1.8.18