Class ASIdentifierManager

  • All Implemented Interfaces:
    NSObject

    public class ASIdentifierManager
    extends NSObject
    The object that contains the advertising identifier. API-Since: 6.0
    • Constructor Detail

      • ASIdentifierManager

        protected ASIdentifierManager​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static ASIdentifierManager allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • sharedManager

        @NotNull
        public static @NotNull ASIdentifierManager sharedManager()
        The shared instance of the identifier manager class. - Returns: Returns the shared instance of the AdSupport identifier manager class.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • advertisingIdentifier

        @NotNull
        public @NotNull NSUUID advertisingIdentifier()
        The UUID that is specific to a device. The ``ASIdentifierManager/advertisingIdentifier`` is an alphanumeric string that’s unique to each device, and which you only use for advertising. Use this string for frequency capping, attribution, conversion events, estimating the number of unique users, advertising fraud detection, and debugging. On devices running iOS 14.5 and later and iPadOS 14.5 and later, your app must request tracking authorization before it can get the advertising identifier. For more information on getting the advertising identifier, see ``AdSupport``. The advertising identifier returns either a unique UUID, or all zeros. It returns a unique UUID in the following cases: - If Settings > Privacy > Tracking > Allow Apps to Request to Track is On, you’ve requested tracking authorization from the user by calling the APIs, and received authorization, indicated by . - If the user changes Settings > Privacy > Tracking > Allow Apps to Request to Track to Off after authorizing your app, and leaves the permissions On for your app. The advertising identifier returns all zeros (`00000000-0000-0000-0000-000000000000`) in the following cases: - In Simulator, regardless of any settings. - When you call this API on a device running macOS. - When you call this API in a compatible iPad or iPhone app running in visionOS. - On devices running iOS 14.5 and later and iPadOS 14.5 and later, if you haven’t requested authorization using the framework. - If you’ve requested authorization using the framework and the user declines, which results in an authorization status of . - When a profile or configuration restricts access to the advertising identifier. For more information about restrictions, see . As a best practice, don’t store the advertising identifier value; access ``ASIdentifierManager/advertisingIdentifier`` instead. Users can change their authorization for tracking at any time in Settings > Privacy > Tracking. Check your app’s authorization using the App Tracking Transparency API to determine the user’s intent. For more information about asking users for permission to track, see [User Privacy and Data Use](https://developer.apple.com/app-store/user-privacy-and-data-use/).
      • isAdvertisingTrackingEnabled

        @Deprecated
        public boolean isAdvertisingTrackingEnabled()
        Deprecated.
        A Boolean value that indicates whether the user has limited ad tracking enabled. - Warning: This property is deprecated. Functionality has been replaced by the framework. API-Since: 6.0 Deprecated-Since: 14.0 Deprecated-Message: This has been replaced by functionality in AppTrackingTransparency's ATTrackingManager class.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.