Code example for PlusClient

Methods: isConnected, revokeAccessAndDisconnect

0
        } 
    } 
 
    /** Revoke access to the current app. */ 
    public void revokeAccessAndDisconnect() { 
        if (mPlusClient.isConnected()) {
            mPlusClient.revokeAccessAndDisconnect(this);
        } 
    } 
 
    /** 
     * Attempts to connect the client to Google Play services if the client isn't already connected, 
     * and isn't in the process of being connected. 
     */ 
    private void connectPlusClient() { 
        if (!mPlusClient.isConnecting() && !mPlusClient.isConnected()) {
            mPlusClient.connect();
        } 
    } 
}