SettingsPreferenceService.OnGetPreferenceValue Method
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.
Retrieve the current value of the requested settings preference.
[Android.Runtime.Register("onGetPreferenceValue", "(Landroid/service/settings/preferences/GetValueRequest;Landroid/os/OutcomeReceiver;)V", "GetOnGetPreferenceValue_Landroid_service_settings_preferences_GetValueRequest_Landroid_os_OutcomeReceiver_Handler", ApiSince=36)]
public abstract void OnGetPreferenceValue(Android.Service.Settings.Preferences.GetValueRequest request, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("onGetPreferenceValue", "(Landroid/service/settings/preferences/GetValueRequest;Landroid/os/OutcomeReceiver;)V", "GetOnGetPreferenceValue_Landroid_service_settings_preferences_GetValueRequest_Landroid_os_OutcomeReceiver_Handler", ApiSince=36)>]
abstract member OnGetPreferenceValue : Android.Service.Settings.Preferences.GetValueRequest * Android.OS.IOutcomeReceiver -> unit
Parameters
- request
- GetValueRequest
object to specify request parameters
- callback
- IOutcomeReceiver
object to receive result or failure of request
- Attributes
Remarks
Retrieve the current value of the requested settings preference. If this value is not exposed or cannot be obtained for some reason, the corresponding result code will be set on the result object.
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.