Android&iOS&Flutter

This document describes how to use the group call feature, such as initiating a group call and joining a group call.

Expected Outcome

TUICallKit supports group calls. See the expected outcome in the image below.
Initiate a Group Call
Receive a Group Call Request
Accept Group Call Requests










Create groupID

Before using the group call feature, you need to create a group first and initiate a group call in an existing group.
Method 1: Create a group by calling the IM API. See IM group management.
Method 2: Manually create a group through the console. See Console group management.

Group Call

Initiate a Group Call

Call the groupCall API to initiate a group call.
Android(Kotlin)
Android(Java)
iOS(Swift)
iOS(Objective-C)
Flutter(Dart)
TUICallKit.createInstance(context).groupCall("12345678", Arrays.asList("jane", "mike", "tommy"), TUICallDefine.MediaType.Video)
TUICallKit.createInstance(context).groupCall("12345678", Arrays.asList("jane", "mike", "tommy"),TUICallDefine.MediaType.Video);
import TUICallKit

TUICallKit.createInstance().groupCall(groupId: "12345678",
userIdList: ["denny", "mike", "tommy"],
callMediaType: .video)
#import <TUICallKit/TUICallKit.h>

[[TUICallKit createInstance] groupCall:@"12345678"
userIdList:@[@"denny", @"mike", @"tommy"]
callMediaType:TUICallMediaTypeVideo];
TUICallKit.instance.groupCall('0001', ['denny', 'mike', 'tommy'], TUICallMediaType.video);

Join a Group Call

Call the joinInGroupCall API to actively join an existing audio or video call in the group.
Android(Kotlin)
Android(Java)
iOS(Swift)
iOS(Objective-C)
Flutter(Dart)
RoomId roomId = RoomId();
roomId.intRoomId = 123321;
TUICallKit.createInstance(context).joinInGroupCall(roomId, "12345678", TUICallDefine.MediaType.Video)
RoomId roomId = new RoomId();
roomId.intRoomId = 123321;
TUICallKit.createInstance(context).joinInGroupCall(roomId , "12345678", TUICallDefine.MediaType.Video);
import TUICallKit
let roomId = TUIRoomId()
roomId.intRoomId = 123321
TUICallKit.createInstance().joinInGroupCall(roomId: roomId,
groupId: "1234567",
callMediaType: .video)
#import <TUICallKit/TUICallKit.h>

TUIRoomId *roomId = [[TUIRoomId alloc] init];
roomId.intRoomId = 123321;

[[TUICallKit createInstance] roomId: roomId
groupId:@"223344"
callMediaType:TUICallMediaTypeVideo];
TUIRoomId roomId = TUIRoomId()
roomId.intRoomId = 123321;
TUICallKit.instance.joinInGroupCall(roomId, '1234567', TUICallMediaType.video);