Package apple.uikit

Class UIImageView

    • Constructor Detail

      • UIImageView

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UIImageView allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • appearance

        @NotNull
        public static @NotNull UIImageView appearance()
      • appearanceForTraitCollection

        @NotNull
        public static @NotNull UIImageView appearanceForTraitCollection​(@NotNull
                                                                        @NotNull UITraitCollection trait)
      • appearanceForTraitCollectionWhenContainedIn

        @NotNull
        @Deprecated
        public static @NotNull UIImageView appearanceForTraitCollectionWhenContainedIn​(@NotNull
                                                                                       @NotNull UITraitCollection trait,
                                                                                       @Nullable
                                                                                       @Nullable UIAppearanceContainer ContainerClass,
                                                                                       java.lang.Object... varargs)
        Deprecated.
      • appearanceForTraitCollectionWhenContainedInInstancesOfClasses

        @NotNull
        public static @NotNull UIImageView appearanceForTraitCollectionWhenContainedInInstancesOfClasses​(@NotNull
                                                                                                         @NotNull UITraitCollection trait,
                                                                                                         @NotNull
                                                                                                         @NotNull NSArray<?> containerTypes)
      • appearanceWhenContainedIn

        @NotNull
        @Deprecated
        public static @NotNull UIImageView appearanceWhenContainedIn​(@Nullable
                                                                     @Nullable UIAppearanceContainer ContainerClass,
                                                                     java.lang.Object... varargs)
        Deprecated.
      • appearanceWhenContainedInInstancesOfClasses

        @NotNull
        public static @NotNull UIImageView appearanceWhenContainedInInstancesOfClasses​(@NotNull
                                                                                       @NotNull NSArray<?> containerTypes)
      • areAnimationsEnabled

        public static boolean areAnimationsEnabled()
      • automaticallyNotifiesObserversForKey

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

        @Deprecated
        public static void beginAnimationsContext​(@Nullable
                                                  @Nullable java.lang.String animationID,
                                                  @Nullable
                                                  @Nullable org.moe.natj.general.ptr.VoidPtr context)
        Deprecated.
      • 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()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(@NotNull
                                                           @NotNull java.lang.String identifier)
      • commitAnimations

        @Deprecated
        public static void commitAnimations()
        Deprecated.
      • 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()
      • inheritedAnimationDuration

        public static double inheritedAnimationDuration()
      • 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)
      • layerClass

        @NotNull
        public static @NotNull org.moe.natj.objc.Class layerClass()
      • requiresConstraintBasedLayout

        public static boolean requiresConstraintBasedLayout()
      • resolveClassMethod

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

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

        @Deprecated
        public static void setAnimationBeginsFromCurrentState​(boolean fromCurrentState)
        Deprecated.
      • setAnimationCurve

        @Deprecated
        public static void setAnimationCurve​(long curve)
        Deprecated.
      • setAnimationDelay

        @Deprecated
        public static void setAnimationDelay​(double delay)
        Deprecated.
      • setAnimationDelegate

        @Deprecated
        public static void setAnimationDelegate​(@Nullable
                                                @Nullable java.lang.Object delegate)
        Deprecated.
      • setAnimationDidStopSelector

        @Deprecated
        public static void setAnimationDidStopSelector​(@Nullable
                                                       @Nullable org.moe.natj.objc.SEL selector)
        Deprecated.
      • setAnimationRepeatAutoreverses

        @Deprecated
        public static void setAnimationRepeatAutoreverses​(boolean repeatAutoreverses)
        Deprecated.
      • setAnimationStartDate

        @Deprecated
        public static void setAnimationStartDate​(@NotNull
                                                 @NotNull NSDate startDate)
        Deprecated.
      • setAnimationTransitionForViewCache

        @Deprecated
        public static void setAnimationTransitionForViewCache​(long transition,
                                                              @NotNull
                                                              @NotNull UIView view,
                                                              boolean cache)
        Deprecated.
      • setAnimationWillStartSelector

        @Deprecated
        public static void setAnimationWillStartSelector​(@Nullable
                                                         @Nullable org.moe.natj.objc.SEL selector)
        Deprecated.
      • setAnimationsEnabled

        public static void setAnimationsEnabled​(boolean enabled)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static long userInterfaceLayoutDirectionForSemanticContentAttribute​(long attribute)
      • userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection

        public static long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection​(long semanticContentAttribute,
                                                                                                            long layoutDirection)
      • version_static

        public static long version_static()
      • animationDuration

        public double animationDuration()
        for one cycle of images. default is number of images * 1/30th of a second (i.e. 30 fps)
      • animationImages

        @Nullable
        public @Nullable NSArray<? extends UIImage> animationImages()
        The array must contain UIImages. Setting hides the single image. default is nil
      • animationRepeatCount

        public long animationRepeatCount()
        0 means infinite (default is 0)
      • _appearance

        @NotNull
        public @NotNull UIImageView _appearance()
        Description copied from interface: UIAppearance
        To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class. For example, to modify the bar tint color for all UINavigationBar instances: [[UINavigationBar appearance] setBarTintColor:myColor]; Note for iOS7: On iOS7 the tintColor property has moved to UIView, and now has special inherited behavior described in UIView.h. This inherited behavior can conflict with the appearance proxy, and therefore tintColor is now disallowed with the appearance proxy.
        Specified by:
        _appearance in interface UIAppearance
        Overrides:
        _appearance in class UIView
      • _appearanceWhenContainedIn

        @NotNull
        @Deprecated
        public @NotNull UIImageView _appearanceWhenContainedIn​(@Nullable
                                                               @Nullable UIAppearanceContainer ContainerClass,
                                                               java.lang.Object... varargs)
        Deprecated.
        Description copied from interface: UIAppearance
        To customize the appearances for instances of a class contained within an instance of a container class, or instances in a hierarchy, use +appearanceWhenContainedInInstancesOfClasses: for the appropriate appearance proxy. For example: [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UISplitViewController class]]] setBarTintColor:myColor]; [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UITabBarController class], [UISplitViewController class]]] setBarTintColor:myTabbedNavBarColor]; In any given view hierarchy the outermost appearance proxy wins. Specificity (depth of the chain) is the tie-breaker. In other words, the containment statement is treated as a partial ordering. Given a concrete ordering (actual subview hierarchy), we select the partial ordering that is the first unique match when reading the actual hierarchy from the window down. API-Since: 5.0 Deprecated-Since: 9.0
        Specified by:
        _appearanceWhenContainedIn in interface UIAppearance
        Overrides:
        _appearanceWhenContainedIn in class UIView
      • highlightedAnimationImages

        @Nullable
        public @Nullable NSArray<? extends UIImage> highlightedAnimationImages()
        The array must contain UIImages. Setting hides the single image. default is nil API-Since: 3.0
      • highlightedImage

        @Nullable
        public @Nullable UIImage highlightedImage()
        default is nil API-Since: 3.0
      • image

        @Nullable
        public @Nullable UIImage image()
        default is nil
      • initWithImageHighlightedImage

        public UIImageView initWithImageHighlightedImage​(@Nullable
                                                         @Nullable UIImage image,
                                                         @Nullable
                                                         @Nullable UIImage highlightedImage)
        API-Since: 3.0
      • isAnimating

        public boolean isAnimating()
      • isHighlighted

        public boolean isHighlighted()
        default is NO API-Since: 3.0
      • setHighlighted

        public void setHighlighted​(boolean value)
        default is NO API-Since: 3.0
      • setUserInteractionEnabled

        public void setUserInteractionEnabled​(boolean value)
        default is NO
        Overrides:
        setUserInteractionEnabled in class UIView
      • setAnimationDuration

        public void setAnimationDuration​(double value)
        for one cycle of images. default is number of images * 1/30th of a second (i.e. 30 fps)
      • setAnimationImages

        public void setAnimationImages​(@Nullable
                                       @Nullable NSArray<? extends UIImage> value)
        The array must contain UIImages. Setting hides the single image. default is nil
      • setAnimationRepeatCount

        public void setAnimationRepeatCount​(long value)
        0 means infinite (default is 0)
      • setHighlightedAnimationImages

        public void setHighlightedAnimationImages​(@Nullable
                                                  @Nullable NSArray<? extends UIImage> value)
        The array must contain UIImages. Setting hides the single image. default is nil API-Since: 3.0
      • setHighlightedImage

        public void setHighlightedImage​(@Nullable
                                        @Nullable UIImage value)
        default is nil API-Since: 3.0
      • setImage

        public void setImage​(@Nullable
                             @Nullable UIImage value)
        default is nil
      • setTintColor

        public void setTintColor​(UIColor value)
        When tintColor is non-nil, any template images set on the image view will be colorized with that color. The tintColor is inherited through the superview hierarchy. See UIView for more information. API-Since: 7.0
        Overrides:
        setTintColor in class UIView
      • startAnimating

        public void startAnimating()
      • stopAnimating

        public void stopAnimating()
      • tintColor

        public UIColor tintColor()
        When tintColor is non-nil, any template images set on the image view will be colorized with that color. The tintColor is inherited through the superview hierarchy. See UIView for more information. API-Since: 7.0
        Overrides:
        tintColor in class UIView
      • preferredSymbolConfiguration

        @Nullable
        public @Nullable UIImageSymbolConfiguration preferredSymbolConfiguration()
        API-Since: 13.0
      • setPreferredSymbolConfiguration

        public void setPreferredSymbolConfiguration​(@Nullable
                                                    @Nullable UIImageSymbolConfiguration value)
        API-Since: 13.0
      • addSymbolEffect

        public void addSymbolEffect​(@NotNull
                                    @NotNull NSSymbolEffect symbolEffect)
        Adds a symbol effect to the image view with default options and animation. API-Since: 17.0
      • addSymbolEffectOptions

        public void addSymbolEffectOptions​(@NotNull
                                           @NotNull NSSymbolEffect symbolEffect,
                                           @NotNull
                                           @NotNull NSSymbolEffectOptions options)
        Adds a symbol effect to the image view with specified options and default animation. API-Since: 17.0
      • addSymbolEffectOptionsAnimated

        public void addSymbolEffectOptionsAnimated​(@NotNull
                                                   @NotNull NSSymbolEffect symbolEffect,
                                                   @NotNull
                                                   @NotNull NSSymbolEffectOptions options,
                                                   boolean animated)
        Adds a symbol effect to the image view with specified options and animation. API-Since: 17.0
      • imageDynamicRange

        public long imageDynamicRange()
        The resolved treatment to use for HDR images.
      • preferredImageDynamicRange

        public long preferredImageDynamicRange()
        The preferred treatment to use for HDR images. By default the image view will defer to the value from its traitCollection.
      • removeAllSymbolEffects

        public void removeAllSymbolEffects()
        Removes all symbol effects from the image view with default options and animation. API-Since: 17.0
      • removeAllSymbolEffectsWithOptions

        public void removeAllSymbolEffectsWithOptions​(@NotNull
                                                      @NotNull NSSymbolEffectOptions options)
        Removes all symbol effects from the image view with specified options and default animation. API-Since: 17.0
      • removeAllSymbolEffectsWithOptionsAnimated

        public void removeAllSymbolEffectsWithOptionsAnimated​(@NotNull
                                                              @NotNull NSSymbolEffectOptions options,
                                                              boolean animated)
        Removes all symbol effects from the image view with specified options and animation. API-Since: 17.0
      • removeSymbolEffectOfType

        public void removeSymbolEffectOfType​(@NotNull
                                             @NotNull NSSymbolEffect symbolEffect)
        Removes from the image view the symbol effect matching the type of effect passed in, with default options and animation. API-Since: 17.0
      • removeSymbolEffectOfTypeOptions

        public void removeSymbolEffectOfTypeOptions​(@NotNull
                                                    @NotNull NSSymbolEffect symbolEffect,
                                                    @NotNull
                                                    @NotNull NSSymbolEffectOptions options)
        Removes from the image view the symbol effect matching the type of effect passed in, with specified options and default animation. API-Since: 17.0
      • removeSymbolEffectOfTypeOptionsAnimated

        public void removeSymbolEffectOfTypeOptionsAnimated​(@NotNull
                                                            @NotNull NSSymbolEffect symbolEffect,
                                                            @NotNull
                                                            @NotNull NSSymbolEffectOptions options,
                                                            boolean animated)
        Removes from the image view the symbol effect matching the type of effect passed in, with specified options and animation. API-Since: 17.0
      • setPreferredImageDynamicRange

        public void setPreferredImageDynamicRange​(long value)
        The preferred treatment to use for HDR images. By default the image view will defer to the value from its traitCollection.
      • setSymbolImageWithContentTransition

        public void setSymbolImageWithContentTransition​(@NotNull
                                                        @NotNull UIImage symbolImage,
                                                        @NotNull
                                                        @NotNull NSSymbolContentTransition transition)
        Sets the symbol image on the image view with a symbol content transition and default options. Passing in a non-symbol image will result in undefined behavior. API-Since: 17.0
      • setSymbolImageWithContentTransitionOptions

        public void setSymbolImageWithContentTransitionOptions​(@NotNull
                                                               @NotNull UIImage symbolImage,
                                                               @NotNull
                                                               @NotNull NSSymbolContentTransition transition,
                                                               @NotNull
                                                               @NotNull NSSymbolEffectOptions options)
        Sets the symbol image on the image view with a symbol content transition and specified options. Passing in a non-symbol image will result in undefined behavior. API-Since: 17.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.