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