public final class

ParticipantUtils

extends Object
java.lang.Object
   ↳ com.google.android.gms.games.multiplayer.ParticipantUtils

Class Overview

Utilities for working with multiplayer participants.

Summary

Public Methods
static String getParticipantId(ArrayList<Participant> participants, String playerId)
Get the participant ID corresponding to a given player ID.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static String getParticipantId (ArrayList<Participant> participants, String playerId)

Get the participant ID corresponding to a given player ID. If none of the provided participants represent the provided player, the return value will be null.

Parameters
participants List of Participants to check.
playerId The player ID to find participant ID for.
Returns
  • The participant ID of the given player, or null if not found.