AdIdManager.GetAdId Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.
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.