Code example for ConnectionResult

Methods: getErrorCode

0
    void giveUp() { 
        mSignInError = true;
        mAutoSignIn = false;
        debugLog("giveUp: giving up on connection. " + 
                ((mConnectionResult == null) ? "(no connection result)" :
                        ("Status code: " + mConnectionResult.getErrorCode())));
 
        if (mConnectionResult != null) {
            UnitySendMessageSafe("GPGAuthResult", "error,"+mConnectionResult.getErrorCode());
        } else { 
            // this is a bug 
            Log.e("GameHelper", "giveUp() called with no mConnectionResult");
            UnitySendMessageSafe("GPGAuthResult", "error"); 
        } 
    } 
     
	private void debugLog(String msg) {
		if (mDebugLog)
            Log.d(TAG, msg);
	}