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
| Parameter | Type | Description |
|---|---|---|
params | OpenChannelInfoParams | Query parameters including member count and sort order. |
handler | OperationHandler<OpenChannelInfo>? | Callback returning OpenChannelInfo. |
OpenChannelInfoParams properties:
| Property | Type | Description |
|---|---|---|
defMemberCount | Int | Number of participants to retrieve (0-20). If 0, only the total count is returned without the member list. Default: 0. |
isAscending | Boolean | Sort order for the participant list. true = ascending by join time (earliest first); false = descending (latest first). Default: true. |
OpenChannelInfo properties:
| Property | Type | Description |
|---|---|---|
channelId | String | Open channel ID. |
totalMemberCount | Int | Total number of participants in the channel. |
isAscending | Boolean? | Sort order used for the member list. |
members | List<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.