Code example for AppStateClient

Methods: disconnectisConnected

0
                && mPlusClient.isConnected()) {
            mConnectedClients &= ~CLIENT_PLUS;
            mPlusClient.disconnect();
        } 
        if ((whatClients & CLIENT_APPSTATE) != 0 && mAppStateClient != null
                && mAppStateClient.isConnected()) {
            mConnectedClients &= ~CLIENT_APPSTATE;
            mAppStateClient.disconnect();
        } 
    } 
	 
	public void onSignOutComplete() { 
		if (mGamesClient.isConnected())
            mGamesClient.disconnect();
		UnitySendMessageSafe("GPGAuthResult", "signedout"); 
	} 
 
	public void onConnectionFailed(ConnectionResult result) {
		// save connection result for later reference 
        mConnectionResult = result;
        debugLog("onConnectionFailed: result " + result.getErrorCode());