RRARView

Objective-C

@interface RRARView : UIView

Swift

class RRARView : UIView

A view that provides the rendering capabilities of the PictofitCore rendering engine combined with ARKit’s functionality. You can access the internally used ARSession instance as well as the RRGLRenderView instance.

  • The instance of the renderview used fo rendering AR content into the scene. The renderView is a subview of the RRARView and is exactly the same size and position.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) RRGLRenderView *_Nonnull renderView;

    Swift

    var renderView: RRGLRenderView { get }
  • The ARSession instance that is needed to track the camera and therefore render the scene according to the camera pose/intrinsics obtained from ARKit. Do never directly set the delegate instance of this session object! When doing this, the RRARView won’t be able to obtain the camera pose tracking information from ARKit any more. Instead if you need to receive the ARSessionDelegate methods, set the sessionDelegate property of RRARView. Other than that, feel free to configure the session according to the needs of your AR application.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) ARSession *_Nonnull session;

    Swift

    var session: ARSession { get }
  • The session delegate of the internally used ARSession instance. If you need to be informed about callbacks from the ARSessionDelegate protocol, set this property. Do not set the delegate property of the session property. This would prevent the RRARView from obtaining the camera pose/intrinsics for rendering the AR content!

    Declaration

    Objective-C

    @property (nonatomic, weak) id<ARSessionDelegate> _Nullable sessionDelegate;

    Swift

    weak var sessionDelegate: ARSessionDelegate? { get set }