Package apple.uikit

Class UIPageControl

    • Constructor Detail

      • UIPageControl

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

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

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

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

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

        @NotNull
        public static @NotNull UIPageControl 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()
      • _appearance

        @NotNull
        public @NotNull UIPageControl _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 UIControl
      • _appearanceWhenContainedIn

        @NotNull
        @Deprecated
        public @NotNull UIPageControl _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 UIControl
      • currentPage

        public long currentPage()
        default is 0. Value is pinned to 0..numberOfPages-1
      • currentPageIndicatorTintColor

        @Nullable
        public @Nullable UIColor currentPageIndicatorTintColor()
        The tint color for the currently-selected indicators. Default is nil. API-Since: 6.0
      • defersCurrentPageDisplay

        @Deprecated
        public boolean defersCurrentPageDisplay()
        Deprecated.
        if set, tapping to a new page won't update the currently displayed page until -updateCurrentPageDisplay is called. default is NO API-Since: 2.0 Deprecated-Since: 14.0 Deprecated-Message: defersCurrentPageDisplay no longer does anything reasonable with the new interaction mode.
      • hidesForSinglePage

        public boolean hidesForSinglePage()
        hides the indicator if there is only one page, default is NO
      • numberOfPages

        public long numberOfPages()
        default is 0
      • pageIndicatorTintColor

        @Nullable
        public @Nullable UIColor pageIndicatorTintColor()
        The tint color for non-selected indicators. Default is nil. API-Since: 6.0
      • setCurrentPage

        public void setCurrentPage​(long value)
        default is 0. Value is pinned to 0..numberOfPages-1
      • setCurrentPageIndicatorTintColor

        public void setCurrentPageIndicatorTintColor​(@Nullable
                                                     @Nullable UIColor value)
        The tint color for the currently-selected indicators. Default is nil. API-Since: 6.0
      • setDefersCurrentPageDisplay

        @Deprecated
        public void setDefersCurrentPageDisplay​(boolean value)
        Deprecated.
        if set, tapping to a new page won't update the currently displayed page until -updateCurrentPageDisplay is called. default is NO API-Since: 2.0 Deprecated-Since: 14.0 Deprecated-Message: defersCurrentPageDisplay no longer does anything reasonable with the new interaction mode.
      • setHidesForSinglePage

        public void setHidesForSinglePage​(boolean value)
        hides the indicator if there is only one page, default is NO
      • setNumberOfPages

        public void setNumberOfPages​(long value)
        default is 0
      • setPageIndicatorTintColor

        public void setPageIndicatorTintColor​(@Nullable
                                              @Nullable UIColor value)
        The tint color for non-selected indicators. Default is nil. API-Since: 6.0
      • sizeForNumberOfPages

        public CGSize sizeForNumberOfPages​(long pageCount)
        Returns the minimum size required to display indicators for the given page count. Can be used to size the control if the page count could change.
      • updateCurrentPageDisplay

        @Deprecated
        public void updateCurrentPageDisplay()
        Deprecated.
        update page display to match the currentPage. ignored if defersCurrentPageDisplay is NO. setting the page value directly will update immediately API-Since: 2.0 Deprecated-Since: 14.0 Deprecated-Message: updateCurrentPageDisplay no longer does anything reasonable with the new interaction mode.
      • allowsContinuousInteraction

        public boolean allowsContinuousInteraction()
        Returns YES if continuous interaction is supported and enabled, NO otherwise. Default is YES for platforms that support it. API-Since: 14.0
      • backgroundStyle

        public long backgroundStyle()
        The preferred background style. Default is UIPageControlBackgroundStyleAutomatic on iOS, and UIPageControlBackgroundStyleProminent on tvOS. API-Since: 14.0
      • indicatorImageForPage

        @Nullable
        public @Nullable UIImage indicatorImageForPage​(long page)
        Returns the override indicator image for the specific page, nil if no override image was set.
        Parameters:
        page - Must be in the range of 0..numberOfPages API-Since: 14.0
      • initWithFramePrimaryAction

        public UIPageControl initWithFramePrimaryAction​(CGRect frame,
                                                        @Nullable
                                                        @Nullable UIAction primaryAction)
        Description copied from class: UIControl
        Initializes the control and adds primaryAction for the UIControlEventPrimaryActionTriggered control event. Subclasses of UIControl may alter or add behaviors around the usage of primaryAction, see subclass documentation of this initializer for additional information. API-Since: 14.0
        Overrides:
        initWithFramePrimaryAction in class UIControl
      • interactionState

        public long interactionState()
        The current interaction state for when the current page changes. Default is UIPageControlInteractionStateNone API-Since: 14.0
      • preferredIndicatorImage

        @Nullable
        public @Nullable UIImage preferredIndicatorImage()
        The preferred image for indicators. Symbol images are recommended. Default is nil. API-Since: 14.0
      • setAllowsContinuousInteraction

        public void setAllowsContinuousInteraction​(boolean value)
        Returns YES if continuous interaction is supported and enabled, NO otherwise. Default is YES for platforms that support it. API-Since: 14.0
      • setBackgroundStyle

        public void setBackgroundStyle​(long value)
        The preferred background style. Default is UIPageControlBackgroundStyleAutomatic on iOS, and UIPageControlBackgroundStyleProminent on tvOS. API-Since: 14.0
      • setIndicatorImageForPage

        public void setIndicatorImageForPage​(@Nullable
                                             @Nullable UIImage image,
                                             long page)
        Override the indicator image for a specific page. Symbol images are recommended.
        Parameters:
        image - The image for the indicator. Resets to the default if image is nil.
        page - Must be in the range of 0..numberOfPages API-Since: 14.0
      • setPreferredIndicatorImage

        public void setPreferredIndicatorImage​(@Nullable
                                               @Nullable UIImage value)
        The preferred image for indicators. Symbol images are recommended. Default is nil. API-Since: 14.0
      • currentPageIndicatorImageForPage

        @Nullable
        public @Nullable UIImage currentPageIndicatorImageForPage​(long page)
        Returns the override current page indicator image for the specific page, nil if no override image was set.
        Parameters:
        page - Must be in the range of 0..numberOfPages API-Since: 16.0
      • direction

        public long direction()
        The layout direction of the page indicators. The default value is \c UIPageControlDirectionNatural. API-Since: 16.0
      • preferredCurrentPageIndicatorImage

        @Nullable
        public @Nullable UIImage preferredCurrentPageIndicatorImage()
        The preferred image for the current page indicator. Symbol images are recommended. Default is nil. If this value is nil, then UIPageControl will use \c preferredPageIndicatorImage (or its per-page variant) as the indicator image. API-Since: 16.0
      • setCurrentPageIndicatorImageForPage

        public void setCurrentPageIndicatorImageForPage​(@Nullable
                                                        @Nullable UIImage image,
                                                        long page)
        Override the current page indicator image for a specific page. Symbol images are recommended.
        Parameters:
        image - The image for the indicator. Resets to the default if image is nil.
        page - Must be in the range of 0..numberOfPages API-Since: 16.0
      • setDirection

        public void setDirection​(long value)
        The layout direction of the page indicators. The default value is \c UIPageControlDirectionNatural. API-Since: 16.0
      • setPreferredCurrentPageIndicatorImage

        public void setPreferredCurrentPageIndicatorImage​(@Nullable
                                                          @Nullable UIImage value)
        The preferred image for the current page indicator. Symbol images are recommended. Default is nil. If this value is nil, then UIPageControl will use \c preferredPageIndicatorImage (or its per-page variant) as the indicator image. API-Since: 16.0
      • progress

        @Nullable
        public @Nullable UIPageControlProgress progress()
        An object that defines the progress of the page control. Default is nil. API-Since: 17.0
      • setProgress

        public void setProgress​(@Nullable
                                @Nullable UIPageControlProgress value)
        An object that defines the progress of the page control. Default is nil. API-Since: 17.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.