Share via


OnDevicePersonalizationManager.QueryFeatureAvailability Method

Definition

Get the status of a specific OnDevicePersonalization feature.

[Android.Runtime.Register("queryFeatureAvailability", "(Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetQueryFeatureAvailability_Ljava_lang_String_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=36)]
public virtual void QueryFeatureAvailability(string featureName, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver receiver);
[<Android.Runtime.Register("queryFeatureAvailability", "(Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetQueryFeatureAvailability_Ljava_lang_String_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=36)>]
abstract member QueryFeatureAvailability : string * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.QueryFeatureAvailability : string * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

Parameters

featureName
String

the name of the specific feature to check the availability of.

executor
IExecutor

the Executor on which to invoke the callback

receiver
IOutcomeReceiver

this either returns a value of FeatureStatus on success or Exception on failure. The exception type is IllegalStateException if the service is not available.

Attributes

Remarks

Get the status of a specific OnDevicePersonalization feature.

Java documentation for android.adservices.ondevicepersonalization.OnDevicePersonalizationManager.queryFeatureAvailability(java.lang.String, java.util.concurrent.Executor, android.os.OutcomeReceiver<java.lang.Integer, 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