searchFriends method
Future<V2TimValueCallback<List<V2TimFriendInfoResult> > >
searchFriends({
- required V2TimFriendSearchParam searchParam,
override
搜索好友
接口返回本地存储的用户资料,可以根据 V2TIMFriendInfoResult 中的 relation 来判断是否为好友。
Implementation
@override
Future<V2TimValueCallback<List<V2TimFriendInfoResult>>> searchFriends({
required V2TimFriendSearchParam searchParam,
}) async {
Map<String, dynamic> param = {
"searchParam": searchParam.toJson(),
};
var resp = V2TimValueCallback<List<V2TimFriendInfoResult>>.fromJson(
formatJson(
await _channel.invokeMethod(
"searchFriends",
buildFriendManagerParam(
param,
),
),
),
);
log("searchFriends", param, resp.toLogString());
return resp;
}