AROverlayView Class Reference
Inherits from | UIControl |
Declared in | AROverlayView.h AROverlayView.m |
Tasks
-
– initWithPoints:
Creates a new overlay with a frame set to the minimum bounding frame needed by the points.
-
– initWithFrame:points:
Creates a new overlay with the points passed.
-
– initWithOverlay:
Creates a new overlay view using the AROverlay provided.
-
– focusInParent:
Focuses the overlay, usually by enlarging it and centering it onscreen with more content displayed. This function can be replaced in subclasses to perform other behaviors when an overlay view is clicked.
-
– unfocusInParent:
Unfocuses the overlay, usually returning it to it’s state on top of the augmented image. This function can be replaced in subclasses to customize the behavior of the overlay view.
-
– applyAttachmentStyleWithParent:
Apply the current overlay attachment style transforming and positioning
it as needed.
-
– addDemoSubviewToOverlay
Adds a nyancat web view within the overlay. Useful for testing empty overlays.
Instance Methods
addDemoSubviewToOverlay
Adds a nyancat web view within the overlay. Useful for testing empty overlays.
- (void)addDemoSubviewToOverlay
Discussion
Adds a nyancat web view within the overlay. Useful for testing empty overlays.
Declared In
AROverlayView.h
applyAttachmentStyleWithParent:
Apply the current overlay attachment style transforming and positioning
it as needed.
- (void)applyAttachmentStyleWithParent:(ARAugmentedView *)parent
Parameters
- parent
The parent ARAugmentedView that transforms should be applied relative to.
Discussion
Apply the current overlay attachment style transforming and positioning
it as needed.
Declared In
AROverlayView.h
focusInParent:
Focuses the overlay, usually by enlarging it and centering it onscreen with more content displayed. This function can be replaced in subclasses to perform other behaviors when an overlay view is clicked.
- (void)focusInParent:(ARAugmentedView *)parent
Parameters
- The
ARAugmentedView that the overlay is being presented in.
Discussion
Focuses the overlay, usually by enlarging it and centering it onscreen with more content displayed. This function can be replaced in subclasses to perform other behaviors when an overlay view is clicked.
Declared In
AROverlayView.h
initWithFrame:points:
Creates a new overlay with the points passed.
- (id)initWithFrame:(CGRect)frame points:(NSArray *)points
Parameters
- frame
- The frame for the view when it has no transforms applied to it. It is recommended to set the frame such that it is smaller than the bounds of the image that will be displayed.
- points
- The unscaled coordinates for the overlay in its superview.
Discussion
Creates a new overlay with the points passed.
Declared In
AROverlayView.h
initWithOverlay:
Creates a new overlay view using the AROverlay provided.
- (id)initWithOverlay:(AROverlay *)model
Parameters
- model
The overlay that this AROverlayView will display.
Discussion
Creates a new overlay view using the AROverlay provided.
Declared In
AROverlayView.h
initWithPoints:
Creates a new overlay with a frame set to the minimum bounding frame needed by the points.
- (id)initWithPoints:(NSArray *)points
Parameters
- points
- The unscaled coordinates for the overlay in its superview.
Discussion
Creates a new overlay with a frame set to the minimum bounding frame needed by the points.
Declared In
AROverlayView.h
unfocusInParent:
Unfocuses the overlay, usually returning it to it’s state on top of the augmented image. This function can be replaced in subclasses to customize the behavior of the overlay view.
- (void)unfocusInParent:(ARAugmentedView *)parent
Parameters
- The
ARAugmentedView that the overlay is being presented in.
Discussion
Unfocuses the overlay, usually returning it to it’s state on top of the augmented image. This function can be replaced in subclasses to customize the behavior of the overlay view.
Declared In
AROverlayView.h