Sdílet prostřednictvím


AdIdManager.GetAdId Method

Definition

Overloads

GetAdId(IExecutor, IAdServicesOutcomeReceiver)

Return the AdId.

GetAdId(IExecutor, IOutcomeReceiver)

Return the AdId.

GetAdId(IExecutor, IAdServicesOutcomeReceiver)

Return the AdId.

[Android.Runtime.Register("getAdId", "(Ljava/util/concurrent/Executor;Landroid/adservices/common/AdServicesOutcomeReceiver;)V", "GetGetAdId_Ljava_util_concurrent_Executor_Landroid_adservices_common_AdServicesOutcomeReceiver_Handler", ApiSince=35)]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_ADSERVICES_AD_ID")]
public virtual void GetAdId (Java.Util.Concurrent.IExecutor executor, Android.AdServices.Common.IAdServicesOutcomeReceiver callback);
[<Android.Runtime.Register("getAdId", "(Ljava/util/concurrent/Executor;Landroid/adservices/common/AdServicesOutcomeReceiver;)V", "GetGetAdId_Ljava_util_concurrent_Executor_Landroid_adservices_common_AdServicesOutcomeReceiver_Handler", ApiSince=35)>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_ADSERVICES_AD_ID")>]
abstract member GetAdId : Java.Util.Concurrent.IExecutor * Android.AdServices.Common.IAdServicesOutcomeReceiver -> unit
override this.GetAdId : Java.Util.Concurrent.IExecutor * Android.AdServices.Common.IAdServicesOutcomeReceiver -> unit

Parameters

executor
IExecutor

The executor to run callback.

callback
IAdServicesOutcomeReceiver

The callback that's called after adid are available or an error occurs.

Attributes

Remarks

Return the AdId. For use on Android R or lower.

Java documentation for android.adservices.adid.AdIdManager.getAdId(java.util.concurrent.Executor, android.adservices.common.AdServicesOutcomeReceiver<android.adservices.adid.AdId, 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

GetAdId(IExecutor, IOutcomeReceiver)

Return the AdId.

[Android.Runtime.Register("getAdId", "(Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetGetAdId_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=34)]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_ADSERVICES_AD_ID")]
public virtual void GetAdId (Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("getAdId", "(Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetGetAdId_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=34)>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_ADSERVICES_AD_ID")>]
abstract member GetAdId : Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.GetAdId : Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

Parameters

executor
IExecutor

The executor to run callback.

callback
IOutcomeReceiver

The callback that's called after adid are available or an error occurs.

Attributes

Remarks

Return the AdId.

Java documentation for android.adservices.adid.AdIdManager.getAdId(java.util.concurrent.Executor, android.os.OutcomeReceiver<android.adservices.adid.AdId, 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