Public Member Functions | |
abstract void | addSignalingListener (V2TIMSignalingListener listener) |
abstract void | removeSignalingListener (V2TIMSignalingListener listener) |
abstract String | invite (String invitee, String data, boolean onlineUserOnly, V2TIMOfflinePushInfo offlinePushInfo, int timeout, V2TIMCallback callback) |
abstract String | inviteInGroup (String groupID, List< String > inviteeList, String data, boolean onlineUserOnly, int timeout, V2TIMCallback callback) |
abstract void | cancel (String inviteID, String data, V2TIMCallback callback) |
abstract void | accept (String inviteID, String data, V2TIMCallback callback) |
abstract void | reject (String inviteID, String data, V2TIMCallback callback) |
abstract V2TIMSignalingInfo | getSignalingInfo (V2TIMMessage msg) |
abstract void | addInvitedSignaling (final V2TIMSignalingInfo info, final V2TIMCallback callback) |
abstract void | modifyInvitation (String inviteID, String data, V2TIMCallback callback) |
|
abstract |
Add the signaling listener
|
abstract |
Remove the signaling listener
|
abstract |
Invite someone
invitee | Invitee's user ID |
data | Custom data |
onlineUserOnly | Whether the message can be received only by online users. If this field is set to true, the message can be received only by online users, and the invitation and the canceling, accepting, rejecting, and timeout of the invitation will not appear among historical messages. |
offlinePushInfo | Offline push information, where the desc field is required. The information specified by desc will be displayed by default during push. |
timeout | Timeout duration, in seconds. If it is set to 0, the SDK will not perform timeout detection or trigger the onInvitationTimeout callback. |
|
abstract |
Invite certain users in the group
groupID | ID of the inviter's group |
inviteeList | List of invitees. Invitees specified by inviteeList must be in the group specified by groupID. Otherwise, the invitation fails. |
onlineUserOnly | Whether the message can be received only by online users. If this field is set to true, the message can be received only by online users, and the invitation and the canceling, accepting, rejecting, and timeout of the invitation will not appear among historical messages. |
timeout | Timeout duration, in seconds. If it is set to 0, the SDK will not perform timeout detection or trigger the onInvitationTimeout callback. |
|
abstract |
Cancel an invitation (called by the inviter)
inviteID | Invitation ID |
|
abstract |
The invitee accepts the invitation
|
abstract |
The invitee rejects the invitation
|
abstract |
Get the signaling information
If onlineUserOnly is set to false in the invite operation, a custom message is generated for each signaling operation (including the invite, cancel, accept, reject, and timeout operations). The message will be delivered to users via V2TIMAdvancedMsgListener -> onRecvNewMessage and can be pulled by users via historical message pulling. If you want to customize the display text based on the signaling information, call this API to get the signaling information.
msg | Message object |
|
abstract |
Add invitation signaling
This API is mainly used to sync group invitations sent to offline users after they are online.
When the invitee clicks the offline push message notification and starts the App:
|
abstract |
Modify the invitaion (supported only in 6.7 and later versions)