Code example for ConnectionResult

0
    /** Integer request code to apply to requests, as set by {@link #signIn(int)}. */ 
    private static final String STATE_REQUEST_CODE = "request_code";
 
    /** 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.) 
    private Handler mHandler;