SharedPreferencesOnSharedPreferenceChangeEventArgs(String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes shared-preference change event data.
public SharedPreferencesOnSharedPreferenceChangeEventArgs(string? key);
new Android.Content.SharedPreferencesOnSharedPreferenceChangeEventArgs : string -> Android.Content.SharedPreferencesOnSharedPreferenceChangeEventArgs
Parameters
- key
- String
The key of the preference that was changed, added, or removed. Apps that target Android 11 (API level 30) or later and run on Android 11 or later receive a null value when preferences are cleared.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.