Optional
onOccurs when a friend request from the current user is accepted by the peer user.
For example, after user B accepts a friend request from user A, user A receives this callback.
The user ID of the user that accepts the friend request of the current user.
Optional
onOccurs when a friend request from the current user is declined by the peer user.
For example, after user B declines a friend request from user A, user A receives this callback.
The user that declines the friend request from the current user.
Optional
onOccurs when a friend request is received by the current user.
For example, after user A receives a friend request from user B, user A receives this callback.
The user who initiates the friend request.
Optional
reason: stringThe invitation message.
Optional
onOptional
on
The contact update listener.
It listens for contact changes, including adding or removing a friend and accepting and declining a friend request.
For descriptions of callback methods in the listener, user A acts as the current user and user B serves as the peer user.