Class SKView

    • Constructor Detail

      • SKView

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static SKView alloc()
      • allocWithZone

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

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

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

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

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

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

        @NotNull
        public static @NotNull SKView 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()
      • new_objc

        public static SKView new_objc()
      • 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()
      • allowsTransparency

        public boolean allowsTransparency()
        Toggles whether the view allows transparent rendering. This allows content under the view to show through if a non-opaque backgroundColor is set on the scene. Defaults to NO. API-Since: 8.0
      • _appearance

        @NotNull
        public @NotNull SKView _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 SKView _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
      • convertPointFromScene

        public CGPoint convertPointFromScene​(CGPoint point,
                                             @NotNull
                                             @NotNull SKScene scene)
        Converts a point from scene space to view space.
        Parameters:
        point - the point to convert.
        scene - the scene to convert the point into.
      • convertPointToScene

        public CGPoint convertPointToScene​(CGPoint point,
                                           @NotNull
                                           @NotNull SKScene scene)
        Converts a point from view space to scene space.
        Parameters:
        point - the point to convert.
        scene - the scene to convert the point into.
      • delegate

        @Nullable
        public @Nullable NSObject delegate()
        Optional view delegate, see SKViewDelegate. API-Since: 10.0
      • frameInterval

        @Deprecated
        public long frameInterval()
        Deprecated.
        Deprecated, please use preferredFramesPerSecond. Number of frames to skip between renders, defaults to 1 (render every frame) Actual requested rate will be preferredFramesPerSecond / frameInterval. API-Since: 7.0 Deprecated-Since: 10.0
      • ignoresSiblingOrder

        public boolean ignoresSiblingOrder()
        Ignores sibling and traversal order to sort the rendered contents of a scene into the most efficient batching possible. This will require zPosition to be used in the scenes to properly guarantee elements are in front or behind each other. This defaults to NO, meaning that sibling order overrides efficiency heuristics in the rendering of the scenes in the view. Setting this to YES for a complex scene may substantially increase performance, but care must be taken as only zPosition determines render order before the efficiency heuristics are used.
      • isAsynchronous

        public boolean isAsynchronous()
        Toggles whether the view updates is rendered asynchronously or aligned with Core Animation updates. Defaults to YES.
      • setAsynchronous

        public void setAsynchronous​(boolean value)
        Toggles whether the view updates is rendered asynchronously or aligned with Core Animation updates. Defaults to YES.
      • isPaused

        public boolean isPaused()
        Pause the entire view
      • setPaused

        public void setPaused​(boolean value)
        Pause the entire view
      • preferredFrameRate

        @Deprecated
        public float preferredFrameRate()
        Deprecated.
        Deprecated, please use preferredFramesPerSecond. FIXME: remove from public headers once all clinets adopt preferredFramesPerSecond. API-Since: 10.0 Deprecated-Since: 10.0
      • preferredFramesPerSecond

        public long preferredFramesPerSecond()
        Defines the desired rate for this SKView to it's content. Actual rate maybe be limited by hardware or other software. API-Since: 10.0
      • presentScene

        public void presentScene​(@Nullable
                                 @Nullable SKScene scene)
        Present an SKScene in the view, replacing the current scene.
        Parameters:
        scene - the scene to present.
      • presentSceneTransition

        public void presentSceneTransition​(@NotNull
                                           @NotNull SKScene scene,
                                           @NotNull
                                           @NotNull SKTransition transition)
        Present an SKScene in the view, replacing the current scene. If there is currently a scene being presented in the view, the transition is used to swap between them.
        Parameters:
        scene - the scene to present.
        transition - the transition to use when presenting the scene.
      • scene

        @Nullable
        public @Nullable SKScene scene()
        The currently presented scene, otherwise nil. If in a transition, the 'incoming' scene is returned.
      • setAllowsTransparency

        public void setAllowsTransparency​(boolean value)
        Toggles whether the view allows transparent rendering. This allows content under the view to show through if a non-opaque backgroundColor is set on the scene. Defaults to NO. API-Since: 8.0
      • setDelegate_unsafe

        public void setDelegate_unsafe​(@Nullable
                                       @Nullable NSObject value)
        Optional view delegate, see SKViewDelegate. API-Since: 10.0
      • setDelegate

        public void setDelegate​(@Nullable
                                @Nullable NSObject value)
        Optional view delegate, see SKViewDelegate. API-Since: 10.0
      • setFrameInterval

        @Deprecated
        public void setFrameInterval​(long value)
        Deprecated.
        Deprecated, please use preferredFramesPerSecond. Number of frames to skip between renders, defaults to 1 (render every frame) Actual requested rate will be preferredFramesPerSecond / frameInterval. API-Since: 7.0 Deprecated-Since: 10.0
      • setIgnoresSiblingOrder

        public void setIgnoresSiblingOrder​(boolean value)
        Ignores sibling and traversal order to sort the rendered contents of a scene into the most efficient batching possible. This will require zPosition to be used in the scenes to properly guarantee elements are in front or behind each other. This defaults to NO, meaning that sibling order overrides efficiency heuristics in the rendering of the scenes in the view. Setting this to YES for a complex scene may substantially increase performance, but care must be taken as only zPosition determines render order before the efficiency heuristics are used.
      • setPreferredFrameRate

        @Deprecated
        public void setPreferredFrameRate​(float value)
        Deprecated.
        Deprecated, please use preferredFramesPerSecond. FIXME: remove from public headers once all clinets adopt preferredFramesPerSecond. API-Since: 10.0 Deprecated-Since: 10.0
      • setPreferredFramesPerSecond

        public void setPreferredFramesPerSecond​(long value)
        Defines the desired rate for this SKView to it's content. Actual rate maybe be limited by hardware or other software. API-Since: 10.0
      • setShouldCullNonVisibleNodes

        public void setShouldCullNonVisibleNodes​(boolean value)
        API-Since: 8.0
      • setShowsDrawCount

        public void setShowsDrawCount​(boolean value)
      • setShowsFPS

        public void setShowsFPS​(boolean value)
        Toggles display of performance stats in the view. All default to false.
      • setShowsFields

        public void setShowsFields​(boolean value)
        API-Since: 8.0
      • setShowsNodeCount

        public void setShowsNodeCount​(boolean value)
      • setShowsPhysics

        public void setShowsPhysics​(boolean value)
        API-Since: 8.0
      • setShowsQuadCount

        public void setShowsQuadCount​(boolean value)
        API-Since: 8.0
      • shouldCullNonVisibleNodes

        public boolean shouldCullNonVisibleNodes()
        API-Since: 8.0
      • showsDrawCount

        public boolean showsDrawCount()
      • showsFPS

        public boolean showsFPS()
        Toggles display of performance stats in the view. All default to false.
      • showsFields

        public boolean showsFields()
        API-Since: 8.0
      • showsNodeCount

        public boolean showsNodeCount()
      • showsPhysics

        public boolean showsPhysics()
        API-Since: 8.0
      • showsQuadCount

        public boolean showsQuadCount()
        API-Since: 8.0
      • textureFromNode

        @Nullable
        public @Nullable SKTexture textureFromNode​(@NotNull
                                                   @NotNull SKNode node)
        Create an SKTexture containing a snapshot of how it would have been rendered in this view. The texture is tightly cropped to the size of the node.
        Parameters:
        node - the node subtree to render to the texture.
      • textureFromNodeCrop

        @Nullable
        public @Nullable SKTexture textureFromNodeCrop​(@NotNull
                                                       @NotNull SKNode node,
                                                       CGRect crop)
        Create an SKTexture containing a snapshot of how it would have been rendered in this view. The texture is cropped to the specified rectangle
        Parameters:
        node - the node subtree to render to the texture.
        crop - the crop
      • disableDepthStencilBuffer

        public boolean disableDepthStencilBuffer()
        If true SKView will not allocate a depth/stencil buffer
      • setDisableDepthStencilBuffer

        public void setDisableDepthStencilBuffer​(boolean value)
        If true SKView will not allocate a depth/stencil buffer
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.