Public Member Functions | |
virtual | ~V2TIMSignalingManager () |
virtual void | AddSignalingListener (V2TIMSignalingListener *listener)=0 |
virtual void | RemoveSignalingListener (V2TIMSignalingListener *listener)=0 |
virtual V2TIMString | Invite (const V2TIMString &invitee, const V2TIMString &data, bool onlineUserOnly, const V2TIMOfflinePushInfo &offlinePushInfo, int timeout, V2TIMCallback *callback)=0 |
virtual V2TIMString | InviteInGroup (const V2TIMString &groupID, const V2TIMStringVector &inviteeList, const V2TIMString &data, bool onlineUserOnly, int timeout, V2TIMCallback *callback)=0 |
virtual void | Cancel (const V2TIMString &inviteID, const V2TIMString &data, V2TIMCallback *callback)=0 |
virtual void | Accept (const V2TIMString &inviteID, const V2TIMString &data, V2TIMCallback *callback)=0 |
virtual void | Reject (const V2TIMString &inviteID, const V2TIMString &data, V2TIMCallback *callback)=0 |
virtual V2TIMSignalingInfo | GetSignalingInfo (const V2TIMMessage &msg)=0 |
virtual void | AddInvitedSignaling (const V2TIMSignalingInfo &info, V2TIMCallback *callback)=0 |
virtual void | ModifyInvitation (const V2TIMString &inviteID, const V2TIMString &data, V2TIMCallback *callback)=0 |
|
inlinevirtual |
|
pure virtual |
Add the signaling listener
|
pure virtual |
Remove the signaling listener
|
pure virtual |
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 does not perform timeout detection nor trigger the OnInvitationTimeout callback. |
|
pure virtual |
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. |
|
pure virtual |
Cancel an invitation (called by the inviter)
inviteID | Invitation ID |
|
pure virtual |
The invitee accepts the invitation
|
pure virtual |
The invitee rejects the invitation
|
pure virtual |
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 |
|
pure virtual |
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:
|
pure virtual |
Modify the invitation (supported only in 6.7 and later versions)