Skip to main content

Get open channel info

The current Android SDK does not expose openChannel.getInfo(). The OpenChannelInfo data model exists in the SDK but no public method currently returns it, and the OpenChannelInfoParams class does not exist in the public API.

  • Total participant count
  • A list of up to 20 participants, including user IDs and join times
Rate limit: 1 call per second per device, up to 20 calls per minute.

Parameters

ParameterTypeDescription
paramsOpenChannelInfoParamsQuery parameters including member count and sort order.
handlerOperationHandler<OpenChannelInfo>?Callback returning OpenChannelInfo.

OpenChannelInfoParams properties:

PropertyTypeDescription
defMemberCountIntNumber of participants to retrieve (0-20). If 0, only the total count is returned without the member list. Default: 0.
isAscendingBooleanSort order for the participant list. true = ascending by join time (earliest first); false = descending (latest first). Default: true.

OpenChannelInfo properties:

PropertyTypeDescription
channelIdStringOpen channel ID.
totalMemberCountIntTotal number of participants in the channel.
isAscendingBoolean?Sort order used for the member list.
membersList<OpenChannelMemberInfo>List of participants (max 20). Each contains userId and joinTime (Unix timestamp in ms).
info

Use the currently published OpenChannel APIs such as enterChannel(), exitChannel(), getMetadata(), setMetadata(), deleteMetadata(), and OpenChannel.createOpenChannelMessagesQuery() until a public channel-info API is exposed.