Browse SDKs · Flutter
Platform
SDKsFlutterEnterprise

Query group call room

Query active ongoing call rooms by group ID using the OpenIM Flutter SDK.

Copy

Query the active audio or video call room currently ongoing in a specified group:

Parameters

ParameterTypeRequiredDescription
groupIDStringYesTarget group ID.

Code example

final room = await OpenIM.iMManager.signalingManager
    .signalingGetRoomByGroupID(groupID: groupID);

if (room.roomID?.isNotEmpty == true) {
  renderParticipants(room.participant ?? const []);
}

Return value

A successful Future returns a RoomCallingInfo object containing room metadata, invitation details, and participant lists.

FieldTypeDescription
roomIDString?Active call room ID. Empty if no ongoing call exists in the group.
invitationInvitationInfo?Invitation details of the active call.
participantList<ParticipantInfo>?List of participants currently connected in the room.
tokenString?Room authentication token.

If roomID is non-empty, use Get call room token to obtain media streaming credentials to join. If no active call is returned, treat the result as having no recoverable call and discard stale credentials.