public class SharedPreferencesFactory extends Object
Retrieves the SharedPreferences
instance where user adjustable settings for ACRA are stored.
Default are the Application default SharedPreferences, but you can provide another SharedPreferences name with AcraCore.sharedPreferencesName()
.
Constructor and Description |
---|
SharedPreferencesFactory(Context context,
CoreConfiguration config) |
Modifier and Type | Method and Description |
---|---|
SharedPreferences |
create() |
static boolean |
shouldEnableACRA(SharedPreferences prefs)
Check if the application default shared preferences contains true for the
key "acra.disable", do not activate ACRA.
|
public SharedPreferencesFactory(@NonNull Context context, @NonNull CoreConfiguration config)
public static boolean shouldEnableACRA(@NonNull SharedPreferences prefs)
prefs
- SharedPreferences to check to see whether ACRA should be
disabled.@NonNull public SharedPreferences create()