Package apple.arkit

Class ARSCNView

    • Constructor Detail

      • ARSCNView

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static ARSCNView allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • anchorForNode

        @Nullable
        public @Nullable ARAnchor anchorForNode​(@NotNull
                                                @NotNull SCNNode node)
        Searches the scene hierarchy for an anchor associated with the provided node.
        Parameters:
        node - A node in the view’s scene.
      • appearance

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

        @NotNull
        public @NotNull ARSCNView _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 SCNView
      • appearanceForTraitCollection

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

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

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

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

        @NotNull
        @Deprecated
        public @NotNull ARSCNView _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 SCNView
      • appearanceWhenContainedInInstancesOfClasses

        @NotNull
        public static @NotNull ARSCNView appearanceWhenContainedInInstancesOfClasses​(@NotNull
                                                                                     @NotNull NSArray<?> containerTypes)
      • areAnimationsEnabled

        public static boolean areAnimationsEnabled()
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • automaticallyUpdatesLighting

        public boolean automaticallyUpdatesLighting()
        Determines whether the view will update the scene’s lighting. When set, the view will automatically create and update lighting for light estimates the session provides. Defaults to YES.
      • 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()
      • hitTestTypes

        @NotNull
        @Deprecated
        public @NotNull NSArray<? extends ARHitTestResult> hitTestTypes​(CGPoint point,
                                                                        long types)
        Deprecated.
        Searches the current frame for objects corresponding to a point in the view. A 2D point in the view’s coordinate space can refer to any point along a line segment in the 3D coordinate space. Hit-testing is the process of finding objects in the world located along this line segment.
        Parameters:
        point - A point in the view’s coordinate system.
        types - The types of results to search for.
        Returns:
        An array of all hit-test results sorted from nearest to farthest. API-Since: 11.0 Deprecated-Since: 14.0 Deprecated-Message: Use [ARSCNView raycastQueryFromPoint:allowingTarget:alignment]
      • inheritedAnimationDuration

        public static double inheritedAnimationDuration()
      • initWithFrameOptions

        public ARSCNView initWithFrameOptions​(CGRect frame,
                                              @Nullable
                                              @Nullable NSDictionary<java.lang.String,​?> options)
        Description copied from class: SCNView
        initWithFrame:options: Initializes and returns a newly allocated SCNView object with a specified frame rectangle.
        Overrides:
        initWithFrameOptions in class SCNView
        Parameters:
        frame - The frame rectangle for the created view object.
        options - An optional dictionary. See "View initialization options" above.
      • 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 ARSCNView new_objc()
      • nodeForAnchor

        @Nullable
        public @Nullable SCNNode nodeForAnchor​(@NotNull
                                               @NotNull ARAnchor anchor)
        Returns the node that has been mapped to a specific anchor.
        Parameters:
        anchor - An anchor with an existing node mapping.
      • 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)
      • session

        @NotNull
        public @NotNull ARSession session()
        Description copied from interface: ARSessionProviding
        To ensure session changes are detected, Swift classes should mark this property as `@objc` and `dynamic`
        Specified by:
        session in interface ARSessionProviding
      • 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)
      • setAutomaticallyUpdatesLighting

        public void setAutomaticallyUpdatesLighting​(boolean value)
        Determines whether the view will update the scene’s lighting. When set, the view will automatically create and update lighting for light estimates the session provides. Defaults to YES.
      • setDelegate

        public void setDelegate​(@Nullable
                                @Nullable java.lang.Object value)
        Specifies the renderer delegate.
        Overrides:
        setDelegate in class SCNView
      • setSession

        public void setSession​(@NotNull
                               @NotNull ARSession value)
        The session that the view uses to update the scene.
      • 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()
      • raycastQueryFromPointAllowingTargetAlignment

        @Nullable
        public @Nullable ARRaycastQuery raycastQueryFromPointAllowingTargetAlignment​(CGPoint point,
                                                                                     long target,
                                                                                     long alignment)
        Creates a raycast query originating from the point on view, aligned along the center of the field of view of the camera. A 2D point in the view's coordinate space and the frame camera's field of view is used to create a ray in the 3D cooridnate space originating at the point.
        Parameters:
        point - A point in the view’s coordinate system.
        target - Type of target where the ray should terminate.
        alignment - Alignment of the target. API-Since: 13.0
      • rendersCameraGrain

        public boolean rendersCameraGrain()
        Determines whether view renders camera grain. When set, the view will automatically add camera grain to rendered content that matches the grainy noise of the camera stream. Enabled by default. API-Since: 13.0
      • rendersMotionBlur

        public boolean rendersMotionBlur()
        Determines whether view renders motion blur. When set, the view will automatically add motion blur to rendered content that matches the motion blur of the camera stream. Overwrites SCNCamera's motionBlurIntensity property. Disabled by default. API-Since: 13.0
      • setRendersCameraGrain

        public void setRendersCameraGrain​(boolean value)
        Determines whether view renders camera grain. When set, the view will automatically add camera grain to rendered content that matches the grainy noise of the camera stream. Enabled by default. API-Since: 13.0
      • setRendersMotionBlur

        public void setRendersMotionBlur​(boolean value)
        Determines whether view renders motion blur. When set, the view will automatically add motion blur to rendered content that matches the motion blur of the camera stream. Overwrites SCNCamera's motionBlurIntensity property. Disabled by default. API-Since: 13.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.