Hide

ParticipantUtils

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

Utilities for working with multiplayer participants.

Public Method Summary

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

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.