acceptFriendApplication method

Future<V2TimValueCallback<V2TimFriendOperationResult>> acceptFriendApplication({
  1. required FriendResponseTypeEnum responseType,
  2. required FriendApplicationTypeEnum type,
  3. required String userID,
})

同意好友申请

参数

application	好友申请信息,getFriendApplicationList 成功后会返回
responseType	建立单向/双向好友关系
FriendApplicationType.V2TIM_FRIEND_ACCEPT_AGREE:同意添加单向好友
FriendApplicationType.V2TIM_FRIEND_ACCEPT_AGREE_AND_ADD:同意并添加为双向好友

Implementation

Future<V2TimValueCallback<V2TimFriendOperationResult>>
    acceptFriendApplication({
  required FriendResponseTypeEnum responseType,
  required FriendApplicationTypeEnum type,
  required String userID,
}) async {
  return ImFlutterPlatform.instance.acceptFriendApplication(
      responseType: responseType.index, type: type.index, userID: userID);
}