public class SFSGameInvitationCallback extends BaseGameInvitationCallback
log, sfsAPI| Constructor and Description |
|---|
SFSGameInvitationCallback(Room game,
int invitedPlayersCount,
boolean leaveLastJoinedRoom) |
| Modifier and Type | Method and Description |
|---|---|
void |
onAccepted(Invitation invObj,
ISFSObject params)
Fired when the invited User has accepted the invitation
|
void |
onExpired(Invitation invObj)
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
|
getGame, isLeaveLastJoindRoompublic SFSGameInvitationCallback(Room game, int invitedPlayersCount, boolean leaveLastJoinedRoom)
public void onAccepted(Invitation invObj, ISFSObject params)
InvitationCallbackinvObj - the invitationparams - optional custom parameters sent by the inviteepublic void onRefused(Invitation invObj, ISFSObject params)
InvitationCallbackinvObj - the invitationparams - optional custom parameters sent by the inviteepublic void onExpired(Invitation invObj)
InvitationCallbackinvObj - the invitation