Class SFSGameInvitationCallback

    • Constructor Detail

      • SFSGameInvitationCallback

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

      • 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