iOS Guides | Samples

AdSupport.ASIdentifierManager Class

Provides a device identifier, only to be used for serving advertisements.

See Also: ASIdentifierManager

Syntax

[Foundation.Register("ASIdentifierManager", true)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.None, null)]
public class ASIdentifierManager : NSObject

Remarks

This class provides a device identifier that is shared by all vendors. This identifier may change over time, for example if the user erases the device, and applications should not cache it.

This identifier should only be used for the purpose of serving advertisements.

Application developers should use the static ASIdentifierManager.SharedManager in order to gain access to the ASIdentifierManager.AdvertisingIdentifier. Application developers must respect the AdSupport.IsAdvertisingTrackingEnabled value.

Related content

Requirements

Namespace: AdSupport
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of AdSupport.ASIdentifierManager are listed below.

See Also: NSObject

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
AdvertisingIdentifierNSUuid. A string that uniquely identifies the device. Must only be used for advertising purposes.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
IsAdvertisingTrackingEnabledBoolean. Whether advertising tracking is allowed by the user.
[read-only]
static
SharedManagerASIdentifierManager. The singleton instance of the ASIdentifierManager.