public interface

Invitation

implements Parcelable Freezable<T> Participatable
com.google.android.gms.games.multiplayer.Invitation
Known Indirect Subclasses

Class Overview

Data interface for an invitation object.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
abstract long getCreationTimestamp()
Retrieve the server timestamp at which this Invitation was created.
abstract Game getGame()
Retrieve the Game object that this Invitation is associated with.
abstract String getInvitationId()
Retrieve the ID of this Invitation.
abstract Participant getInviter()
Retrieve the Participant who created this Invitation.
abstract int getVariant()
Retrieve the variant specified for this Invitation, if any.
[Expand]
Inherited Methods
From interface android.os.Parcelable
From interface com.google.android.gms.common.data.Freezable
From interface com.google.android.gms.games.multiplayer.Participatable

Public Methods

public abstract long getCreationTimestamp ()

Retrieve the server timestamp at which this Invitation was created.

Returns
  • The server timestamp at which this Invitation was created.

public abstract Game getGame ()

Retrieve the Game object that this Invitation is associated with.

Returns

public abstract String getInvitationId ()

Retrieve the ID of this Invitation.

Returns

public abstract Participant getInviter ()

Retrieve the Participant who created this Invitation.

Returns

public abstract int getVariant ()

Retrieve the variant specified for this Invitation, if any. A variant is an optional developer-controlled parameter describing the type of game to play. If specified, this value will be a positive integer. If this invitation had no variant specified, returns ROOM_VARIANT_ANY.

Returns
  • Variant specified for this invitation, if any.