OnFriendListAddedCallback
Introduction
The callback of new user been added to contact list event.
Returned template
OnFriendListAddedCallback = void Function(
List<V2TimFriendInfo> users
)
Return value details
name | type | description |
---|---|---|
users | List< V2TimFriendInfo > | The newly added users. |
Code example
V2TimFriendshipListener listener = V2TimFriendshipListener(
onFriendListAdded: (List<V2TimFriendInfo> users) async {
}
);
TencentImSDKPlugin.v2TIMManager
.getFriendshipManager()
.addFriendListener(listener: listener);