Class IRtmPresenceAbstract
Methods
Abstract getOnlineUsers
- getOnlineUsers(channelName, channelType, options): number
-
Returns number
- 0: Success.
- < 0: Failure.
Abstract getState
- getState(channelName, channelType, userId): number
-
Parameters
-
channelName: string
-
-
userId: string
Returns number
- 0: Success.
- < 0: Failure.
Abstract getUserChannels
- getUserChannels(userId): number
-
Returns number
- 0: Success.
- < 0: Failure.
Abstract removeState
- removeState(channelName, channelType, keys, count): number
-
Parameters
-
channelName: string
-
-
keys: string[]
-
count: number
Returns number
- 0: Success.
- < 0: Failure.
Abstract setState
- setState(channelName, channelType, items, count): number
-
Parameters
-
channelName: string
-
-
-
count: number
Returns number
- 0: Success.
- < 0: Failure.
Abstract whereNow
- whereNow(userId): number
-
Returns number
- 0: Success.
- < 0: Failure.
Abstract whoNow
- whoNow(channelName, channelType, options): number
-
Returns number
- 0: Success.
- < 0: Failure.
The IRtmPresence class.
This class provides the rtm presence methods that can be invoked by your app.