![]() |
KudanAR - iOS
1.6.0
|
#import <ARView.h>
Inherits UIView.
Inherited by ARCameraView.
Instance Methods | |
(UIImage *) | - screenshot |
(void) | - didRotateToInterfaceOrientation: |
(instancetype) | - initWithFrame:interfaceOrientation: |
Properties | |
ARRenderTargetMain * | renderTarget |
An ARView encapsulates AR activities. It is a custom subclass of UIView that specifically handles the rendering of AR content and any interaction with it. It uses an assocaited render target to draw more complex content that an ordinary UIView is not capable of displaying.
- (void) didRotateToInterfaceOrientation: | (UIInterfaceOrientation) | orientation |
An abstract method that can be implemented in subclasses, this provides a way to run code when the view's orientation changes.
- (instancetype) initWithFrame: | (CGRect) | frame | |
interfaceOrientation: | (UIInterfaceOrientation) | orientation | |
Initialise a view with the given frame at the given interface orientation.
Example of use:
frame | The frame rectangle for the view. |
interfaceOrientation | The orientation at the time of creation. ARView needs to keep track of this to function properly. |
- (UIImage *) screenshot |
Take a screenshot of the current render target. To use this method, it is recommended to use it via the ARCameraView in your ARCameraViewController.
Example of use:
|
readwritenonatomicassign |
The main render target associated with this view.