getGroupManager
Introduction
Get the group manager, which is the main class for those group-related methods.
The main class and entry point for those group-related methods.
Parameter details
This API has no parameters
Returned template
V2TIMGroupManager
Return value details
name | type | description |
---|---|---|
V2TIMGroupManager | V2TIMGroupManager | The main class and entry point for those group-related methods. |
Code example
import { TencentImSDKPlugin, GroupAddOptEnum } from 'react-native-tim-js';
const createGroupRes = await TencentImSDKPlugin.v2TIMManager
.getGroupManager()
.createGroup({
groupType: 'Publich',
groupName: 'groupName',
notification: '',
introduction: '',
faceUrl: '',
isAllMuted: false,
isSupportTopic: false,
addOpt: GroupAddOptEnum.V2TIM_GROUP_ADD_AUTH,
memberList: [],
});
if (createGroupRes.code === 0) {
const groupID = createGroupRes.data;
console.log(groupID);
}