Class IRtmPresenceAbstract

The IRtmPresence class.

This class provides the rtm presence methods that can be invoked by your app.

Hierarchy

  • IRtmPresence

Constructors

Methods

  • Get user state

    Parameters

    • channelName: string
    • channelType: RTM_CHANNEL_TYPE
    • userId: string
    • Optional requestId: number

    Returns number

    • 0: Success.
    • < 0: Failure.
  • To query which channels the user joined

    Parameters

    • userId: string
    • Optional requestId: number

    Returns number

    • 0: Success.
    • < 0: Failure.
  • Delete user state

    Parameters

    • channelName: string
    • channelType: RTM_CHANNEL_TYPE
    • keys: string[]
    • count: number
    • Optional requestId: number

    Returns number

    • 0: Success.
    • < 0: Failure.
  • Set user state

    Parameters

    Returns number

    • 0: Success.
    • < 0: Failure.
  • To query which channels the user joined

    Parameters

    • userId: string
    • Optional requestId: number

    Returns number

    • 0: Success.
    • < 0: Failure.
  • To query who joined this channel

    Parameters

    Returns number

    • 0: Success.
    • < 0: Failure.