SettingsPreferenceService.OnGetPreferenceValue Method

Definition

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.

Java documentation for android.service.settings.preferences.SettingsPreferenceService.onGetPreferenceValue(android.service.settings.preferences.GetValueRequest, android.os.OutcomeReceiver<android.service.settings.preferences.GetValueResult, java.lang.Exception>).

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.

Applies to