Summary: Methods | Inherited Methods | [Expand All]
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
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## 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 `Participant`s to check.
playerId | The player ID to find participant ID for.

##### Returns

- The participant ID of the given player, or null if not found.