sdk/src/main/java/com/bugsnag/android/Client.java
public void clearUser() {
        user.setId(getStringFromMap("id", deviceData.getDeviceData()));
        user.setEmail(null);
        user.setName(null);

        SharedPreferences sharedPref =
            appContext.getSharedPreferences(SHARED_PREF_KEY, Context.MODE_PRIVATE);
        sharedPref.edit()
            .remove(USER_ID_KEY)
            .remove(USER_EMAIL_KEY)
            .remove(USER_NAME_KEY)
            .apply();
        notifyBugsnagObservers(NotifyType.USER);
    }
/**
     * Removes the current user data and sets it back to defaults
     */
Removes the current user data and sets it back to defaults
Removes the current user data and sets it back to defaults
public void clearUser() {
        user.setId(getStringFromMap("id", deviceData.getDeviceData()));
        user.setEmail(null);
        user.setName(null);
        SharedPreferences sharedPref =
            appContext.getSharedPreferences(SHARED_PREF_KEY, Context.MODE_PRIVATE);
        sharedPref.edit()
            .remove(USER_ID_KEY)
            .remove(USER_EMAIL_KEY)
            .remove(USER_NAME_KEY)
            .apply();
        notifyBugsnagObservers(NotifyType.USER);
    }
public void clearUser ( ) { user . setId ( getStringFromMap ( "id" , deviceData . getDeviceData ( ) ) ) ; user . setEmail ( null ) ; user . setName ( null ) ; SharedPreferences sharedPref = appContext . getSharedPreferences ( SHARED_PREF_KEY , Context . MODE_PRIVATE ) ; sharedPref . edit ( ) . remove ( USER_ID_KEY ) . remove ( USER_EMAIL_KEY ) . remove ( USER_NAME_KEY ) . apply ( ) ; notifyBugsnagObservers ( NotifyType . USER ) ; }
Removes the current user data and sets it back to defaults
Removes the current user data and sets it back to defaults