Code example for AppStateClient

Methods: isConnectedsignOut

0
      if(connectionCallback != null)
      { 
        connectionCallback.call("signedOut", new Object[]{"GAMES_CLIENT"});
      } 
    } 
    if(appStateClient != null && appStateClient.isConnected())
    { 
      appStateClient.signOut();
      if(connectionCallback != null)
      { 
        connectionCallback.call("signedOut", new Object[] {"APP_STATE_CLIENT"});
      } 
    } 
  } 
 
  public static void unlockAchievement(final String achievementId)
  { 
    GLSurfaceView view = GameActivity.getMainView();
    GameActivity.getInstance().runOnUiThread(new Runnable(){
      public void run() { 
Connect your IDE to all the code out there  Get Codota for Java