setGroupMemberRole method
Future<V2TimCallback>
setGroupMemberRole({
- required String groupID,
- required String userID,
- required GroupMemberRoleTypeEnum role,
override
Implementation
@override
Future<V2TimCallback> setGroupMemberRole({
required String groupID,
required String userID,
required GroupMemberRoleTypeEnum role,
}) async {
final result = await TencentImSDKPlugin.v2TIMManager
.getGroupManager()
.setGroupMemberRole(groupID: groupID, userID: userID, role: role);
if (result.code != 0) {
_coreService.callOnCallback(TIMCallback(
type: TIMCallbackType.API_ERROR,
errorMsg: result.desc,
errorCode: result.code));
}
return result;
}