Java Code Examples for com.facebook.internal.Utility#clearCaches()

The following examples show how to use com.facebook.internal.Utility#clearCaches() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Session.java    From Klyph with MIT License 5 votes vote down vote up
/**
 * Closes the local in-memory Session object and clears any persisted token
 * cache related to the Session.
 */
public final void closeAndClearTokenInformation() {
    if (this.tokenCachingStrategy != null) {
        this.tokenCachingStrategy.clear();
    }
    Utility.clearFacebookCookies(staticContext);
    Utility.clearCaches(staticContext);
    close();
}
 
Example 2
Source File: Session.java    From Abelana-Android with Apache License 2.0 5 votes vote down vote up
/**
 * Closes the local in-memory Session object and clears any persisted token
 * cache related to the Session.
 */
public final void closeAndClearTokenInformation() {
    if (this.tokenCachingStrategy != null) {
        this.tokenCachingStrategy.clear();
    }
    Utility.clearFacebookCookies(staticContext);
    Utility.clearCaches(staticContext);
    close();
}
 
Example 3
Source File: Session.java    From KlyphMessenger with MIT License 5 votes vote down vote up
/**
 * Closes the local in-memory Session object and clears any persisted token
 * cache related to the Session.
 */
public final void closeAndClearTokenInformation() {
    if (this.tokenCachingStrategy != null) {
        this.tokenCachingStrategy.clear();
    }
    Utility.clearFacebookCookies(staticContext);
    Utility.clearCaches(staticContext);
    close();
}
 
Example 4
Source File: Session.java    From facebook-api-android-maven with Apache License 2.0 5 votes vote down vote up
/**
 * Closes the local in-memory Session object and clears any persisted token
 * cache related to the Session.
 */
public final void closeAndClearTokenInformation() {
    if (this.tokenCachingStrategy != null) {
        this.tokenCachingStrategy.clear();
    }
    Utility.clearFacebookCookies(staticContext);
    Utility.clearCaches(staticContext);
    close();
}