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 java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • appearance

        public static java.lang.Object appearance()
      • appearanceForTraitCollection

        public static java.lang.Object appearanceForTraitCollection​(UITraitCollection trait)
      • appearanceForTraitCollectionWhenContainedIn

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

        public static java.lang.Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses​(UITraitCollection trait,
                                                                                                     NSArray<?> containerTypes)
      • appearanceWhenContainedIn

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

        public static java.lang.Object appearanceWhenContainedInInstancesOfClasses​(NSArray<?> containerTypes)
      • areAnimationsEnabled

        public static boolean areAnimationsEnabled()
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • beginAnimationsContext

        public static void beginAnimationsContext​(java.lang.String animationID,
                                                  org.moe.natj.general.ptr.VoidPtr context)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(java.lang.String identifier)
      • commitAnimations

        public static void commitAnimations()
      • 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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • layerClass

        public static org.moe.natj.objc.Class layerClass()
      • new_objc

        public static java.lang.Object 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

        public static void setAnimationBeginsFromCurrentState​(boolean fromCurrentState)
      • setAnimationCurve

        public static void setAnimationCurve​(long curve)
      • setAnimationDelay

        public static void setAnimationDelay​(double delay)
      • setAnimationDelegate

        public static void setAnimationDelegate​(java.lang.Object delegate)
      • setAnimationDidStopSelector

        public static void setAnimationDidStopSelector​(org.moe.natj.objc.SEL selector)
      • setAnimationDuration_static

        public static void setAnimationDuration_static​(double duration)
      • setAnimationRepeatAutoreverses

        public static void setAnimationRepeatAutoreverses​(boolean repeatAutoreverses)
      • setAnimationRepeatCount_static

        public static void setAnimationRepeatCount_static​(float repeatCount)
      • setAnimationStartDate

        public static void setAnimationStartDate​(NSDate startDate)
      • setAnimationTransitionForViewCache

        public static void setAnimationTransitionForViewCache​(long transition,
                                                              UIView view,
                                                              boolean cache)
      • setAnimationWillStartSelector

        public static void setAnimationWillStartSelector​(org.moe.natj.objc.SEL selector)
      • 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.
      • _appearance

        public java.lang.Object _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

        @Deprecated
        public java.lang.Object _appearanceWhenContainedIn​(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.
        Specified by:
        _appearanceWhenContainedIn in interface UIAppearance
        Overrides:
        _appearanceWhenContainedIn in class UIView
      • convertPointFromScene

        public CGPoint convertPointFromScene​(CGPoint point,
                                             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,
                                           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

        public NSObject delegate()
        Optional view delegate, see SKViewDelegate.
      • frameInterval

        public long frameInterval()
        Deprecated, please use preferredFramesPerSecond. Number of frames to skip between renders, defaults to 1 (render every frame) Actual requested rate will be preferredFramesPerSecond / frameInterval.
      • 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

        public float preferredFrameRate()
        Deprecated, please use preferredFramesPerSecond. FIXME: remove from public headers once all clinets adopt preferredFramesPerSecond.
      • 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.
      • presentScene

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

        public void presentSceneTransition​(SKScene scene,
                                           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

        public 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.
      • setDelegate_unsafe

        public void setDelegate_unsafe​(NSObject value)
        Optional view delegate, see SKViewDelegate.
      • setDelegate

        public void setDelegate​(NSObject value)
        Optional view delegate, see SKViewDelegate.
      • setFrameInterval

        public void setFrameInterval​(long value)
        Deprecated, please use preferredFramesPerSecond. Number of frames to skip between renders, defaults to 1 (render every frame) Actual requested rate will be preferredFramesPerSecond / frameInterval.
      • 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

        public void setPreferredFrameRate​(float value)
        Deprecated, please use preferredFramesPerSecond. FIXME: remove from public headers once all clinets adopt preferredFramesPerSecond.
      • 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.
      • setShouldCullNonVisibleNodes

        public void setShouldCullNonVisibleNodes​(boolean value)
      • 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)
      • setShowsNodeCount

        public void setShowsNodeCount​(boolean value)
      • setShowsPhysics

        public void setShowsPhysics​(boolean value)
      • setShowsQuadCount

        public void setShowsQuadCount​(boolean value)
      • shouldCullNonVisibleNodes

        public boolean shouldCullNonVisibleNodes()
      • showsDrawCount

        public boolean showsDrawCount()
      • showsFPS

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

        public boolean showsFields()
      • showsNodeCount

        public boolean showsNodeCount()
      • showsPhysics

        public boolean showsPhysics()
      • showsQuadCount

        public boolean showsQuadCount()
      • textureFromNode

        public SKTexture textureFromNode​(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

        public SKTexture textureFromNodeCrop​(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