SettingsPreferenceService.OnSetPreferenceValue Method

Definition

Set the value within the request to the target settings preference.

[Android.Runtime.Register("onSetPreferenceValue", "(Landroid/service/settings/preferences/SetValueRequest;Landroid/os/OutcomeReceiver;)V", "GetOnSetPreferenceValue_Landroid_service_settings_preferences_SetValueRequest_Landroid_os_OutcomeReceiver_Handler", ApiSince=36)]
public abstract void OnSetPreferenceValue(Android.Service.Settings.Preferences.SetValueRequest request, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("onSetPreferenceValue", "(Landroid/service/settings/preferences/SetValueRequest;Landroid/os/OutcomeReceiver;)V", "GetOnSetPreferenceValue_Landroid_service_settings_preferences_SetValueRequest_Landroid_os_OutcomeReceiver_Handler", ApiSince=36)>]
abstract member OnSetPreferenceValue : Android.Service.Settings.Preferences.SetValueRequest * Android.OS.IOutcomeReceiver -> unit

Parameters

request
SetValueRequest

object to specify request parameters

callback
IOutcomeReceiver

object to receive result or failure of request

Attributes

Remarks

Set the value within the request to the target settings preference. If this value cannot be written for some reason, the corresponding result code will be set on the result object.

Java documentation for android.service.settings.preferences.SettingsPreferenceService.onSetPreferenceValue(android.service.settings.preferences.SetValueRequest, android.os.OutcomeReceiver<android.service.settings.preferences.SetValueResult, 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