Class PKInkingTool

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class PKInkingTool
extends PKTool
Since:
Available in iOS 13.0 and later.
  • Constructor Details

    • PKInkingTool

      protected PKInkingTool()
    • PKInkingTool

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

      protected PKInkingTool​(NSObject.SkipInit skipInit)
    • PKInkingTool

      public PKInkingTool​(PKInkType type, UIColor color, double width)
    • PKInkingTool

      public PKInkingTool​(PKInkType type, UIColor color)
    • PKInkingTool

      public PKInkingTool​(PKInk ink, double width)
      Since:
      Available in iOS 14.0 and later.
  • Method Details

    • getInkType

      public PKInkType getInkType()
    • getColor

      public UIColor getColor()
    • getWidth

      public double getWidth()
    • getInk

      public PKInk getInk()
      Since:
      Available in iOS 14.0 and later.
    • init

      protected long init​(PKInkType type, UIColor color, double width)
    • init

      protected long init​(PKInkType type, UIColor color)
    • init

      protected long init​(PKInk ink, double width)
      Since:
      Available in iOS 14.0 and later.
    • defaultWidthForInkType

      public static double defaultWidthForInkType​(PKInkType inkType)
    • minimumWidthForInkType

      public static double minimumWidthForInkType​(PKInkType inkType)
    • maximumWidthForInkType

      public static double maximumWidthForInkType​(PKInkType inkType)
    • convertColor

      public static UIColor convertColor​(UIColor color, UIUserInterfaceStyle fromUserInterfaceStyle, UIUserInterfaceStyle toUserInterfaceStyle)