Codota Logo
Account.clearDefaultAccount
Code IndexAdd Codota to your IDE (free)

How to use
clearDefaultAccount
method
in
com.google.android.gms.plus.Account

Best Java code snippets using com.google.android.gms.plus.Account.clearDefaultAccount (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: multidots/android-social-signin-helper

  public void signOut() {
    if (mGoogleApiClient != null && mGoogleApiClient.isConnected()) {
      Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);
      mGoogleApiClient.disconnect();
    }
  }
}
origin: mmazzarolo/easy-bookmarks

public void signOut() {
  if (mGoogleApiClient.isConnected()) {
    Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);
    mGoogleApiClient.disconnect();
    mGoogleApiClient.connect();
  }
}
origin: nglauber/dominando_android2

  login();
} else if (mGoogleApiClient.isConnected()) {
  Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);
  Plus.AccountApi.revokeAccessAndDisconnect(mGoogleApiClient);
  mGoogleApiClient.disconnect();
origin: tvbarthel/ChaseWhisplyProject

/** Sign out and disconnect from the APIs. */
public void signOut() {
  if (!mGoogleApiClient.isConnected()) {
    // nothing to do
    debugLog("signOut: was already disconnected, ignoring.");
    return;
  }
  // for Plus, "signing out" means clearing the default account and
  // then disconnecting
  if (0 != (mRequestedClients & CLIENT_PLUS)) {
    debugLog("Clearing default account on PlusClient.");
    Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);
  }
  // For the games client, signing out means calling signOut and
  // disconnecting
  if (0 != (mRequestedClients & CLIENT_GAMES)) {
    debugLog("Signing out from the Google API Client.");
    Games.signOut(mGoogleApiClient);
  }
  // Ready to disconnect
  debugLog("Disconnecting client.");
  mConnectOnStart = false;
  mConnecting = false;
  mGoogleApiClient.disconnect();
}
origin: hypeapps/FixMath

/** Sign out and disconnect from the APIs. */
public void signOut() {
  if (!mGoogleApiClient.isConnected()) {
    // nothing to do
    debugLog("signOut: was already disconnected, ignoring.");
    return;
  }
  // for Plus, "signing out" means clearing the default account and
  // then disconnecting
  if (0 != (mRequestedClients & CLIENT_PLUS)) {
    debugLog("Clearing default account on PlusClient.");
    Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);
  }
  // For the games client, signing out means calling signOut and
  // disconnecting
  if (0 != (mRequestedClients & CLIENT_GAMES)) {
    debugLog("Signing out from the Google API Client.");
    Games.signOut(mGoogleApiClient);
  }
  // Ready to disconnect
  debugLog("Disconnecting client.");
  mConnectOnStart = false;
  mConnecting = false;
  mGoogleApiClient.disconnect();
}
com.google.android.gms.plusAccountclearDefaultAccount

Popular methods of Account

  • getAccountName
  • revokeAccessAndDisconnect

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • orElseThrow (Optional)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now