Share via


SettingsPreferenceServiceClient.GetPreferenceValue Method

Definition

Retrieve the current value of the requested settings preference.

[Android.Runtime.Register("getPreferenceValue", "(Landroid/service/settings/preferences/GetValueRequest;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetGetPreferenceValue_Landroid_service_settings_preferences_GetValueRequest_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=36)]
public virtual void GetPreferenceValue(Android.Service.Settings.Preferences.GetValueRequest request, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver receiver);
[<Android.Runtime.Register("getPreferenceValue", "(Landroid/service/settings/preferences/GetValueRequest;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetGetPreferenceValue_Landroid_service_settings_preferences_GetValueRequest_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=36)>]
abstract member GetPreferenceValue : Android.Service.Settings.Preferences.GetValueRequest * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.GetPreferenceValue : Android.Service.Settings.Preferences.GetValueRequest * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

Parameters

request
GetValueRequest

object to specify request parameters

executor
IExecutor

Executor on which to invoke the receiver

receiver
IOutcomeReceiver

callback to receive the result or failure

Attributes

Remarks

Retrieve the current value of the requested settings preference.

Java documentation for android.service.settings.preferences.SettingsPreferenceServiceClient.getPreferenceValue(android.service.settings.preferences.GetValueRequest, java.util.concurrent.Executor, 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