SDKsiOS
Update friend information
Update iOS friend remarks, pinned status, or extension fields.
OIMUpdateFriendsReq *req = [OIMUpdateFriendsReq new];
req.friendUserIDs = @[@"user_b"];
req.remark = @"Alex";
req.isPinned = YES;
[[OIMManager manager] updateFriends:req onSuccess:nil onFailure:nil];One call applies the same field values to every user in friendUserIDs. The ex field is replaced as a complete string. Handle the success callback and onFriendInfoChanged: as separate stages.
Was this page helpful?