Package apple.uikit

Class NSDataAsset

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class NSDataAsset
    extends NSObject
    implements NSCopying
    NSDataAsset represents the contents of data entries in your asset catalog. Data assets are not in the same class of stored content as images, so you cannot use a data asset to get image data for an image. API-Since: 9.0
    • Constructor Detail

      • NSDataAsset

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NSDataAsset 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)
      • superclass_static

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

        public static long version_static()
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • data

        @NotNull
        public @NotNull NSData data()
        The data for this asset, as stored in the asset catalog
      • initWithName

        public NSDataAsset initWithName​(@NotNull
                                        @NotNull java.lang.String name)
        Equivalent to -initWithName:name bundle:[NSBundle mainBundle];
      • initWithNameBundle

        public NSDataAsset initWithNameBundle​(@NotNull
                                              @NotNull java.lang.String name,
                                              @NotNull
                                              @NotNull NSBundle bundle)
        Create a data asset with the given name from the given bundle. Returns nil if the asset was not found.
      • name

        @NotNull
        public @NotNull java.lang.String name()
        The name used to reference the data asset
      • typeIdentifier

        @NotNull
        public @NotNull java.lang.String typeIdentifier()
        The Uniform Type Identifier for this data object.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.