Code example for ConnectionResult

0
 
    /** 
     * Signed in successfully connection state. 
     */ 
    private static final ConnectionResult CONNECTION_RESULT_SUCCESS =
            new ConnectionResult(ConnectionResult.SUCCESS, null);
    /** 
     * An invalid request code to use to indicate that {@link #signIn(int)} hasn't been called. 
     */ 
    private static final int INVALID_REQUEST_CODE = -1;
 
    // The PlusClient to connect. 
    private PlusClient mPlusClient;
 
    // The last result from onConnectionFailed. 
    private ConnectionResult mLastConnectionResult;
 
    // The request specified in signIn or INVALID_REQUEST_CODE if not signing in. 
    private int mRequestCode;
 
    // A handler to post callbacks (rather than call them in a potentially reentrant way.)