Friendship
Send, receive friend request, and friend confirmation events.
Last updated
Was this helpful?
Send, receive friend request, and friend confirmation events.
Last updated
Was this helpful?
Send, receive friend request, and friend confirmation events.
send request
receive request(in friend event)
confirmation friendship(friend event)
Kind: global class
instance
⇒ Promise <void>
⇒ string
⇒ Contact
⇒ FriendshipType
static
⇒ Promise <void>
Promise <void>
Accept Friend Request
string
Get verify message from
Contact
Get the contact from friendship
FriendshipType
Return the Friendship Type
Tips: FriendshipType is enum here. </br>
FriendshipType.Unknown
FriendshipType.Confirm
FriendshipType.Receive
FriendshipType.Verify
Deprecated
Promise <void>
Send a Friend Request to a contact
with message hello
.
The best practice is to send friend request once per minute. Remeber not to do this too frequently, or your account may be blocked.
Param
Type
Description
contact
Contact
Send friend request to contact
hello
string
The friend request content
Example
Kind: instance method of Example
Kind: instance method of Example (If request content is `ding`, then accept the friendship)
Kind: instance method of Example
Kind: instance method of Example (If request content is `ding`, then accept the friendship)
use instead
Kind: static method of
Kind: static method of