#import <ARFullscreenManager.h>
Inherits NSObject, and <ARRendererDelegate>.
The ARFullscreenManager is a class that allows ARVideos to smoothly transition to fullscreen videos and back.
Example of use:
-(void)setup
{
[imageTrackable.
world addChild:node];
[node addChild:videoNoce];
UIPinchGestureRecognizer *pinchRecognizer = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(respondToPinch:)];
[self addGestureRecognizer:pinchRecognizer];
}
- (void)respondToPinch:(UIPinchGestureRecognizer *)recognizer
{
}
◆ deinitialise
Disables fullscreen and removes all references and delegates.
Example of use:
◆ disableFullscreen
- (void) disableFullscreen |
|
|
|
Transitions the current fullscreen node back to it's original transformation in it's parent.
Example of use:
◆ getInstance
◆ initialiseWithViewport:
- (void) initialiseWithViewport: |
|
(ARViewPort *) |
viewport |
|
Initialises the manager to enable fullscreen in the desired viewport. Must be called for fullscreen to occur.
Example of use:
◆ makeNodeFullscreen:
Makes the specified ARVideoNode transition to fullscreen view. Can only be called if no other node is currently fullscreen.
Example of use:
◆ setDeviceOrientation:
- (void) setDeviceOrientation: |
|
(UIInterfaceOrientation) |
orientation |
|
Called when the orientation of the device changes. Used to keep fullscreen nodes in the correct orientation. Should be called automatically.
Example of use:
◆ backgroundFadeAnimationTime
- (NSTimeInterval) backgroundFadeAnimationTime |
|
readwritenonatomicassign |
The amount of time, in seconds, that the background around the video fading to black should take. Changing this value will make the transition faster or slower. By default, it takes 1 second to complete. This only applies if showBackground is set to YES.
◆ fullscreenAnimationTime
- (NSTimeInterval) fullscreenAnimationTime |
|
readwritenonatomicassign |
The amount of time, in seconds, that the animation going between node and fullscreen should take. Changing this value will make the transition faster or slower. By default, it takes 1 second to complete.
◆ fullscreenNode
The current node in fullscreen. Will be nil if no node is currently fullscreen.
◆ nearPlaneHeight
- (float) nearPlaneHeight |
|
readnonatomicassign |
The height of the camera's near clip plane.
◆ nearPlaneWidth
The width of the camera's near clip plane.
◆ principlePointOffset
- (CGPoint) principlePointOffset |
|
readnonatomicassign |
The offset of the camera principle point from the screen centre.
◆ renderTargetCorrection
- (float) renderTargetCorrection |
|
readnonatomicassign |
Correctional value to account for the difference in viewport width to its associated render target.
◆ rotationAnimationTime
- (NSTimeInterval) rotationAnimationTime |
|
readwritenonatomicassign |
The amount of time, in seconds, that the animation for turning the video when the screen orientation changes should take. Changing this value will make the animation faster or slower. By default, it takes 1 second to complete.
◆ screenOrientation
Rotation of the screen from default state of UIInterfaceOrientationLandscapeLeft.
◆ showBackground
Whether or not the node will have a black borders that fade in to obscure the rest of the scene after enabling fullscreen. The size of the black borders will be dependant on the aspect ratio of the video vs the aspect ratio of the screen.
◆ showPlaceholder
Whether or not a black placeholder box will be left in the place of a node when fullscreen is enabled. A black box will appear at the VideoNode's location if YES. Nothing will appear at the node's location if NO.
◆ world
The ARWorld containing the fullscreen node.
The documentation for this class was generated from the following files:
- ARFullscreenManager.h
- ARFullscreenManager.m