withSharedPreferencesName

fun withSharedPreferencesName(sharedPreferencesName: String): CoreConfigurationBuilder

Name of the SharedPreferences that will host ACRA settings which you can make accessible to your users through a preferences screen:

  • {@link org.acra.ACRA#PREF_DISABLE_ACRA} or {@link org.acra.ACRA#PREF_ENABLE_ACRA}
  • {@link org.acra.ACRA#PREF_ALWAYS_ACCEPT}
  • {@link org.acra.ACRA#PREF_ENABLE_DEVICE_ID}
  • {@link org.acra.ACRA#PREF_ENABLE_SYSTEM_LOGS}
Default is to use the application default SharedPreferences, as retrieved with {@link android.preference.PreferenceManager#getDefaultSharedPreferences(android.content.Context)}

Return

this instance

Parameters

sharedPreferencesName

SharedPreferences name.