Package apple.uikit

Class UIStackView

    • Constructor Detail

      • UIStackView

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

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

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

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

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

        @NotNull
        public static @NotNull UIStackView 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.
      • setAnimationDuration_static

        @Deprecated
        public static void setAnimationDuration_static​(double duration)
        Deprecated.
      • setAnimationRepeatAutoreverses

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

        @Deprecated
        public static void setAnimationRepeatCount_static​(float repeatCount)
        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()
      • addArrangedSubview

        public void addArrangedSubview​(@NotNull
                                       @NotNull UIView view)
        Add a view to the end of the arrangedSubviews list. Maintains the rule that the arrangedSubviews list is a subset of the subviews list by adding the view as a subview of the receiver if necessary. Does not affect the subview ordering if view is already a subview of the receiver.
      • alignment

        public long alignment()
        The layout of the arrangedSubviews transverse to the axis; e.g., leading/trailing edges in a vertical stack
      • _appearance

        @NotNull
        public @NotNull UIStackView _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 UIStackView _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
      • arrangedSubviews

        @NotNull
        public @NotNull NSArray<? extends UIView> arrangedSubviews()
      • axis

        public long axis()
        A stack with a horizontal axis is a row of arrangedSubviews, and a stack with a vertical axis is a column of arrangedSubviews.
      • distribution

        public long distribution()
        The layout of the arrangedSubviews along the axis
      • initWithArrangedSubviews

        public UIStackView initWithArrangedSubviews​(@NotNull
                                                    @NotNull NSArray<? extends UIView> views)
        Adds views as subviews of the receiver.
      • insertArrangedSubviewAtIndex

        public void insertArrangedSubviewAtIndex​(@NotNull
                                                 @NotNull UIView view,
                                                 long stackIndex)
        Adds the view as a subview of the container if it isn't already. Updates the stack index (but not the subview index) of the arranged subview if it's already in the arrangedSubviews list.
      • isBaselineRelativeArrangement

        public boolean isBaselineRelativeArrangement()
        Baseline-to-baseline spacing in vertical stacks. The baselineRelativeArrangement property supports specifications of vertical space from the last baseline of one text-based view to the first baseline of a text-based view below, or from the top (or bottom) of a container to the first (or last) baseline of a contained text-based view. This property is ignored in horizontal stacks. Use the alignment property to specify baseline alignment in horizontal stacks. Defaults to NO.
      • setBaselineRelativeArrangement

        public void setBaselineRelativeArrangement​(boolean value)
        Baseline-to-baseline spacing in vertical stacks. The baselineRelativeArrangement property supports specifications of vertical space from the last baseline of one text-based view to the first baseline of a text-based view below, or from the top (or bottom) of a container to the first (or last) baseline of a contained text-based view. This property is ignored in horizontal stacks. Use the alignment property to specify baseline alignment in horizontal stacks. Defaults to NO.
      • isLayoutMarginsRelativeArrangement

        public boolean isLayoutMarginsRelativeArrangement()
        Uses margin layout attributes for edge constraints where applicable. Defaults to NO.
      • setLayoutMarginsRelativeArrangement

        public void setLayoutMarginsRelativeArrangement​(boolean value)
        Uses margin layout attributes for edge constraints where applicable. Defaults to NO.
      • removeArrangedSubview

        public void removeArrangedSubview​(@NotNull
                                          @NotNull UIView view)
        Removes a subview from the list of arranged subviews without removing it as a subview of the receiver. To remove the view as a subview, send it -removeFromSuperview as usual; the relevant UIStackView will remove it from its arrangedSubviews list automatically.
      • setAlignment

        public void setAlignment​(long value)
        The layout of the arrangedSubviews transverse to the axis; e.g., leading/trailing edges in a vertical stack
      • setAxis

        public void setAxis​(long value)
        A stack with a horizontal axis is a row of arrangedSubviews, and a stack with a vertical axis is a column of arrangedSubviews.
      • setDistribution

        public void setDistribution​(long value)
        The layout of the arrangedSubviews along the axis
      • setSpacing

        public void setSpacing​(double value)
        Spacing between adjacent edges of arrangedSubviews. Used as a strict spacing for the Fill distributions, and as a minimum spacing for the EqualCentering and EqualSpacing distributions. Use negative values to allow overlap. On iOS 11.0 or later, use UIStackViewSpacingUseSystem (Swift: UIStackView.spacingUseSystem) to get a system standard spacing value. Setting spacing to UIStackViewSpacingUseDefault (Swift: UIStackView.spacingUseDefault) will result in a spacing of 0. System spacing between views depends on the views involved, and may vary across the stack view. In vertical stack views with baselineRelativeArrangement == YES, the spacing between text-containing views (such as UILabels) will depend on the fonts involved.
      • spacing

        public double spacing()
        Spacing between adjacent edges of arrangedSubviews. Used as a strict spacing for the Fill distributions, and as a minimum spacing for the EqualCentering and EqualSpacing distributions. Use negative values to allow overlap. On iOS 11.0 or later, use UIStackViewSpacingUseSystem (Swift: UIStackView.spacingUseSystem) to get a system standard spacing value. Setting spacing to UIStackViewSpacingUseDefault (Swift: UIStackView.spacingUseDefault) will result in a spacing of 0. System spacing between views depends on the views involved, and may vary across the stack view. In vertical stack views with baselineRelativeArrangement == YES, the spacing between text-containing views (such as UILabels) will depend on the fonts involved.
      • customSpacingAfterView

        public double customSpacingAfterView​(@NotNull
                                             @NotNull UIView arrangedSubview)
        API-Since: 11.0
      • setCustomSpacingAfterView

        public void setCustomSpacingAfterView​(double spacing,
                                              @NotNull
                                              @NotNull UIView arrangedSubview)
        Set and get custom spacing after a view. This custom spacing takes precedence over any other value that might otherwise be used for the space following the arranged subview. Defaults to UIStackViewSpacingUseDefault (Swift: UIStackView.spacingUseDefault), where resolved value will match the spacing property. You may also set the custom spacing to UIStackViewSpacingUseSystem (Swift: UIStackView.spacingUseSystem), where the resolved value will match the system-defined value for the space to the neighboring view, independent of the spacing property. Maintained when the arranged subview changes position in the stack view, but not after it is removed from the arrangedSubviews list. Ignored if arrangedSubview is not actually an arranged subview. API-Since: 11.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.