Class UIPageControl

All Implemented Interfaces:
CALayerDelegate, NSCoding, NSObjectProtocol, UIAccessibilityIdentification, UIActivityItemsConfigurationProviding, UIAppearanceContainer, UIContextMenuInteractionDelegate, UICoordinateSpace, UIDynamicItem, UIFocusEnvironment, UIFocusItem, UIFocusItemContainer, UILargeContentViewerItem, UIPasteConfigurationSupporting, UIResponderStandardEditActions, UITraitEnvironment, UIUserActivityRestoring, ObjCProtocol

public class UIPageControl
extends UIControl
  • Constructor Details

    • UIPageControl

      public UIPageControl()
    • UIPageControl

      protected UIPageControl​(NSObject.Handle h, long handle)
    • UIPageControl

      protected UIPageControl​(NSObject.SkipInit skipInit)
    • UIPageControl

      public UIPageControl​(CGRect frame)
    • UIPageControl

      public UIPageControl​(NSCoder coder)
    • UIPageControl

      public UIPageControl​(CGRect frame, UIAction primaryAction)
      Since:
      Available in iOS 14.0 and later.
  • Method Details

    • getNumberOfPages

      public long getNumberOfPages()
    • setNumberOfPages

      public void setNumberOfPages​(long v)
    • getCurrentPage

      public long getCurrentPage()
    • setCurrentPage

      public void setCurrentPage​(long v)
    • hidesForSinglePage

      public boolean hidesForSinglePage()
    • setHidesForSinglePage

      public void setHidesForSinglePage​(boolean v)
    • getPageIndicatorTintColor

      public UIColor getPageIndicatorTintColor()
    • setPageIndicatorTintColor

      public void setPageIndicatorTintColor​(UIColor v)
    • getCurrentPageIndicatorTintColor

      public UIColor getCurrentPageIndicatorTintColor()
    • setCurrentPageIndicatorTintColor

      public void setCurrentPageIndicatorTintColor​(UIColor v)
    • getBackgroundStyle

      public UIPageControlBackgroundStyle getBackgroundStyle()
      Since:
      Available in iOS 14.0 and later.
    • setBackgroundStyle

      public void setBackgroundStyle​(UIPageControlBackgroundStyle v)
      Since:
      Available in iOS 14.0 and later.
    • getInteractionState

      public UIPageControlInteractionState getInteractionState()
      Since:
      Available in iOS 14.0 and later.
    • allowsContinuousInteraction

      public boolean allowsContinuousInteraction()
      Since:
      Available in iOS 14.0 and later.
    • setAllowsContinuousInteraction

      public void setAllowsContinuousInteraction​(boolean v)
      Since:
      Available in iOS 14.0 and later.
    • getPreferredIndicatorImage

      public UIImage getPreferredIndicatorImage()
      Since:
      Available in iOS 14.0 and later.
    • setPreferredIndicatorImage

      public void setPreferredIndicatorImage​(UIImage v)
      Since:
      Available in iOS 14.0 and later.
    • defersCurrentPageDisplay

      @Deprecated public boolean defersCurrentPageDisplay()
      Deprecated.
      Deprecated in iOS 14.0. defersCurrentPageDisplay no longer does anything reasonable with the new interaction mode.
    • setDefersCurrentPageDisplay

      @Deprecated public void setDefersCurrentPageDisplay​(boolean v)
      Deprecated.
      Deprecated in iOS 14.0. defersCurrentPageDisplay no longer does anything reasonable with the new interaction mode.
    • getLayerClass

      public static Class<? extends CALayer> getLayerClass()
    • indicatorImageForPage

      public UIImage indicatorImageForPage​(long page)
      Since:
      Available in iOS 14.0 and later.
    • setIndicatorImage

      public void setIndicatorImage​(UIImage image, long page)
      Since:
      Available in iOS 14.0 and later.
    • getSizeForNumberOfPages

      public CGSize getSizeForNumberOfPages​(long pageCount)
    • updateCurrentPageDisplay

      @Deprecated public void updateCurrentPageDisplay()
      Deprecated.
      Deprecated in iOS 14.0. updateCurrentPageDisplay no longer does anything reasonable with the new interaction mode.
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute attribute)
      Since:
      Available in iOS 9.0 and later.
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection)
      Since:
      Available in iOS 10.0 and later.