b15 b15 - 1 year ago 97
Android Question

How to get the current player's participant id in Xamarin

Using google games services, how do I get the participant id of the 'current player' using Xamarin? In Java, it's simply


But I can't find the equivalent in C# with the Xamarin google games component.

Answer Source

Where client is a GoogleApiClient that has the GamesClass.API added and the GamesClass.ScopeGames added to it:

if (client.IsConnected)
    var player = GamesClass.Players.GetCurrentPlayer(client);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download