Class PKCanvasView

    • Constructor Detail

      • PKCanvasView

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static PKCanvasView allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • allowsFingerDrawing

        @Deprecated
        public boolean allowsFingerDrawing()
        Deprecated.
        API-Since: 13.0 Deprecated-Since: 14.0 Deprecated-Message: Use 'drawingPolicy' property.
      • appearance

        @NotNull
        public static @NotNull PKCanvasView appearance()
      • _appearance

        @NotNull
        public @NotNull PKCanvasView _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 UIScrollView
      • appearanceForTraitCollection

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

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

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

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

        @NotNull
        @Deprecated
        public @NotNull PKCanvasView _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 UIScrollView
      • appearanceWhenContainedInInstancesOfClasses

        @NotNull
        public static @NotNull PKCanvasView 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()
      • delegate

        @Nullable
        public @Nullable java.lang.Object delegate()
        The delegate for drawing operations.
        Overrides:
        delegate in class UIScrollView
      • description_static

        public static java.lang.String description_static()
      • drawing

        @NotNull
        public @NotNull PKDrawing drawing()
        The drawing shown on this view.
      • drawingGestureRecognizer

        @NotNull
        public @NotNull UIGestureRecognizer drawingGestureRecognizer()
        The gesture recognizer used to draw in the canvas.
      • 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)
      • isRulerActive

        public boolean isRulerActive()
        Is the ruler shown on the canvas.
      • 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)
      • setAllowsFingerDrawing

        @Deprecated
        public void setAllowsFingerDrawing​(boolean value)
        Deprecated.
        API-Since: 13.0 Deprecated-Since: 14.0 Deprecated-Message: Use 'drawingPolicy' property.
      • 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)
      • setDelegate_unsafe

        public void setDelegate_unsafe​(@Nullable
                                       @Nullable java.lang.Object value)
        The delegate for drawing operations.
        Overrides:
        setDelegate_unsafe in class UIScrollView
      • setDelegate

        public void setDelegate​(@Nullable
                                @Nullable java.lang.Object value)
        The delegate for drawing operations.
        Overrides:
        setDelegate in class UIScrollView
      • setDrawing

        public void setDrawing​(@NotNull
                               @NotNull PKDrawing value)
        The drawing shown on this view.
      • setRulerActive

        public void setRulerActive​(boolean value)
        Is the ruler shown on the canvas.
      • setTool

        public void setTool​(@NotNull
                            @NotNull PKTool value)
        The tool used to interact with the canvas. Default is `[[PKInkingTool alloc] initWithType:PKInkTypePen color:UIColor.blackColor]`
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        @NotNull
        public @NotNull PKTool tool()
        The tool used to interact with the canvas. Default is `[[PKInkingTool alloc] initWithType:PKInkTypePen color:UIColor.blackColor]`
      • toolPickerFramesObscuredDidChange

        public void toolPickerFramesObscuredDidChange​(@NotNull
                                                      @NotNull PKToolPicker toolPicker)
        Description copied from interface: PKToolPickerObserver
        Tells the delegate that the frames the tool picker obscures changed. Note, the obscured frames for a view can also change when that view changes, not just when this delegate method is called.
        Specified by:
        toolPickerFramesObscuredDidChange in interface PKToolPickerObserver
        Parameters:
        toolPicker - The tool picker that changed.
      • userInterfaceLayoutDirectionForSemanticContentAttribute

        public static long userInterfaceLayoutDirectionForSemanticContentAttribute​(long attribute)
      • userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection

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

        public static long version_static()
      • drawingPolicy

        public long drawingPolicy()
        The drawing policy that controls the types of touches that are allowed to draw in the canvas. Defaults to `PKCanvasViewDrawingPolicyDefault`. API-Since: 14.0
      • setDrawingPolicy

        public void setDrawingPolicy​(long value)
        The drawing policy that controls the types of touches that are allowed to draw in the canvas. Defaults to `PKCanvasViewDrawingPolicyDefault`. API-Since: 14.0
      • maximumSupportedContentVersion

        public long maximumSupportedContentVersion()
        The maximum supported PencilKit content version. Setting this to less than `.latest` limits the edits that can be made so they are compatible with the specified version. If setting this property, also set it on any `PKToolPicker` used. Defaults to `.latest`. API-Since: 17.0
      • setMaximumSupportedContentVersion

        public void setMaximumSupportedContentVersion​(long value)
        The maximum supported PencilKit content version. Setting this to less than `.latest` limits the edits that can be made so they are compatible with the specified version. If setting this property, also set it on any `PKToolPicker` used. Defaults to `.latest`. API-Since: 17.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.