Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

close

- - Get Started
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
    - Get the SDK
  - Google Services
- - Google Play
  - Publishing
  - Promoting
  - App Quality
  - Spotlight
  - Open Distribution

## Results

Loading...
Summary: Inherited Methods | [Expand All]
public interface

# TurnBasedMultiplayerListener

implements OnInvitationReceivedListener OnTurnBasedMatchCanceledListener OnTurnBasedMatchInitiatedListener OnTurnBasedMatchLeftListener OnTurnBasedMatchUpdateReceivedListener OnTurnBasedMatchUpdatedListener OnTurnBasedMatchesLoadedListener

com.google.android.gms.games.multiplayer.turnbased.TurnBasedMultiplayerListener

This interface is deprecated.
See `TurnBasedMultiplayer.CancelMatchResult`, `TurnBasedMultiplayer.InitiateMatchResult`, `TurnBasedMultiplayer.LeaveMatchResult`, `TurnBasedMultiplayer.LoadMatchesResult`, `TurnBasedMultiplayer.UpdateMatchResult`, `OnInvitationReceivedListener`, and `OnTurnBasedMatchUpdateReceivedListener`.

## Class Overview

Helper interface compounding all of the necessary listeners to implement a turn-based multiplayer game.

## Summary

[Expand] Inherited Methods

From interface com.google.android.gms.games.multiplayer.OnInvitationReceivedListener

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.

From interface com.google.android.gms.games.multiplayer.turnbased.OnTurnBasedMatchCanceledListener

abstract void | onTurnBasedMatchCanceled(int statusCode, String matchId) Called when the match has been canceled.

From interface com.google.android.gms.games.multiplayer.turnbased.OnTurnBasedMatchInitiatedListener

abstract void | onTurnBasedMatchInitiated(int statusCode, TurnBasedMatch match) Called when match has been initiated.

From interface com.google.android.gms.games.multiplayer.turnbased.OnTurnBasedMatchLeftListener

abstract void | onTurnBasedMatchLeft(int statusCode, TurnBasedMatch match) Called when the player has left the match.

From interface com.google.android.gms.games.multiplayer.turnbased.OnTurnBasedMatchUpdateReceivedListener

abstract void | onTurnBasedMatchReceived(TurnBasedMatch match) Callback invoked when a new update to a match arrives.
abstract void | onTurnBasedMatchRemoved(String matchId) Callback invoked when a match has been removed from the local device.

From interface com.google.android.gms.games.multiplayer.turnbased.OnTurnBasedMatchUpdatedListener

abstract void | onTurnBasedMatchUpdated(int statusCode, TurnBasedMatch match) Called when match has been updated.

From interface com.google.android.gms.games.multiplayer.turnbased.OnTurnBasedMatchesLoadedListener

abstract void | onTurnBasedMatchesLoaded(int statusCode, LoadMatchesResponse response) Called when matches have been loaded.