Interface InvitationCallback
- All Known Implementing Classes:
BaseGameInvitationCallback,GenericInvitationCallback,JoinRoomInvitationCallback,SFSGameInvitationCallback
public interface InvitationCallback
The InvitationCallback is used to handle the client response to an invitation.
If the invitation expires before the invitee replies the onExpired event will be called.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonAccepted(Invitation invObj, ISFSObject params) Fired when the invited User has accepted the invitationvoidonExpired(Invitation invObj) The event is fired when the invitation has expired or if the invitee gets disconnected before he sends a response.voidonRefused(Invitation invObj, ISFSObject params) Fired when the invited User has refused the invitation
-
Method Details
-
onAccepted
Fired when the invited User has accepted the invitation- Parameters:
invObj- the invitationparams- optional custom parameters sent by the invitee
-
onRefused
Fired when the invited User has refused the invitation- Parameters:
invObj- the invitationparams- optional custom parameters sent by the invitee
-
onExpired
The event is fired when the invitation has expired or if the invitee gets disconnected before he sends a response.- Parameters:
invObj- the invitation
-