withExcludeMatchingSharedPreferencesKeys

fun withExcludeMatchingSharedPreferencesKeys(vararg excludeMatchingSharedPreferencesKeys: String): CoreConfigurationBuilder

Provide here regex patterns to be evaluated on each {@link android.content.SharedPreferences} key to exclude KV pairs from the collected SharedPreferences. This allows you to exclude sensitive user data like passwords from being collected.

If you only want to include some keys, you may use regular expressions to do so:

only keys foo and bar
"^(?!foo|bar).*$"
only keys containing foo and bar
"^((?!foo|bar).)*$"

Return

this instance

Parameters

excludeMatchingSharedPreferencesKeys

regex patterns, every matching key is not collected.