AdId Constructors
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
| Name | Description |
|---|---|
| AdId(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| AdId(String, Boolean) |
Creates an instance of |
AdId(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected AdId(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.AdServices.AdIds.AdId : nativeint * Android.Runtime.JniHandleOwnership -> Android.AdServices.AdIds.AdId
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnership value indicating how to handle javaReference.
Remarks
This constructor supports the Java interop infrastructure and is not intended to be called directly by applications.
Applies to
AdId(String, Boolean)
Creates an instance of AdId
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Z)V", "", ApiSince=34)]
public AdId(string adId, bool limitAdTrackingEnabled);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Z)V", "", ApiSince=34)>]
new Android.AdServices.AdIds.AdId : string * bool -> Android.AdServices.AdIds.AdId
Parameters
- adId
- String
obtained from the provider service.
- limitAdTrackingEnabled
- Boolean
value from the provider service which determines the value of adId.
- Attributes
Remarks
Creates an instance of AdId
Java documentation for android.adservices.adid.AdId.AdId(java.lang.String, boolean).
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.