Delegate GameServices.InvitationReceivedDelegate
Delegate that handles an incoming multiplayer match invitation (for both real-time and turn-base matches).
Namespace: EasyMobile
Assembly: cs.temp.dll.dll
Syntax
public delegate void InvitationReceivedDelegate(Invitation invitation, bool shouldAutoAccept);
Parameters
Type | Name | Description |
---|---|---|
Invitation | invitation | The invitation received. |
System.Boolean | shouldAutoAccept | If this is true, then the game should immediately accept the invitation and go to the game screen without prompting the user. If false, you should prompt the user before accepting the invitation. As an example, when a user taps on an invitation notification or message to accept it, it is clear that they want to accept that invitation right away, so the plugin calls this delegate with shouldAutoAccept = true. However, if we receive an incoming invitation that the player hasn't specifically indicated they wish to accept (for example, we received one silently while the app is in foreground), this delegate will be called with shouldAutoAccept = false to indicate that you should confirm with the user to see if they wish to accept or decline the invitation. |