InvitationCallback | Doclava
public abstract class

InvitationCallback

extends Object
implements OnInvitationReceivedListener
java.lang.Object
   ↳ com.google.android.gms.games.multiplayer.InvitationCallback

Class Overview

Callback to invoke when a new invitation is received.

Summary

Public Constructors
InvitationCallback()
Public Methods
abstract void onInvitationReceived(Invitation invitation)
Callback invoked when a new invitation is received.
abstract void onInvitationRemoved(String invitationId)
Callback invoked when a previously received invitation has been removed from the local device.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.android.gms.games.multiplayer.OnInvitationReceivedListener

Public Constructors

public InvitationCallback ()

Public Methods

public abstract void onInvitationReceived (Invitation invitation)

Callback invoked when a new invitation is received. This allows an app to respond to the invitation as appropriate. If the app receives this callback, the system will not display a notification for this invitation.

Parameters
invitation Invitation: The invitation that was received.

public abstract void onInvitationRemoved (String invitationId)

Callback invoked when a previously received invitation has been removed from the local device. For example, this might occur if the inviting player leaves the match.

Parameters
invitationId String: The ID of the invitation that was removed.