Skip to content Skip to sidebar Skip to footer

TurnBasedMultiplayer - OnTurnBasedMatchesLoaded Does Not Get Called

I am using the google play games service in my android app and I am trying to load all turn based matches with the status: TurnBasedMatch.MATCH_TURN_STATUS_MY_TURN public class Tur

Solution 1:

You have to register the ResultCallback

 Games.TurnBasedMultiplayer.loadMatchesByStatus(googleApiClient, TurnBasedMatch.MATCH_TURN_STATUS_MY_TURN).setResultCallback(
        new ResultCallback<TurnBasedMultiplayer.LoadMatchesResult>()
        {
          @Override
          public void onResult(LoadMatchesResult result)
          {

          }
        });

Post a Comment for "TurnBasedMultiplayer - OnTurnBasedMatchesLoaded Does Not Get Called"