Class SFSGameInvitationCallback

java.lang.Object
com.smartfoxserver.game.BaseGameInvitationCallback
com.smartfoxserver.game.SFSGameInvitationCallback
All Implemented Interfaces:
InvitationCallback

public class SFSGameInvitationCallback extends BaseGameInvitationCallback
  • Constructor Details

    • SFSGameInvitationCallback

      public SFSGameInvitationCallback(Room game, int invitedPlayersCount, boolean leaveLastJoinedRoom)
  • Method Details

    • onAccepted

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

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

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