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 Type
    Method
    Description
    void
    onAccepted(Invitation invObj, ISFSObject params)
    Fired when the invited User has accepted the invitation
    void
    The event is fired when the invitation has expired or if the invitee gets disconnected before he sends a response.
    void
    onRefused(Invitation invObj, ISFSObject params)
    Fired when the invited User has refused the invitation
  • Method Details

    • onAccepted

      void onAccepted(Invitation invObj, ISFSObject params)
      Fired when the invited User has accepted the invitation
      Parameters:
      invObj - the invitation
      params - optional custom parameters sent by the invitee
    • onRefused

      void onRefused(Invitation invObj, ISFSObject params)
      Fired when the invited User has refused the invitation
      Parameters:
      invObj - the invitation
      params - optional custom parameters sent by the invitee
    • onExpired

      void onExpired(Invitation invObj)
      The event is fired when the invitation has expired or if the invitee gets disconnected before he sends a response.
      Parameters:
      invObj - the invitation