SnapscreenARSnapViewControllerDelegate
@protocol SnapscreenARSnapViewControllerDelegate <NSObject>
Provides callbacks from the SnapscreenARSnapViewController during the snapping process
-
The view controller perform initial setup and provides the given view for you to draw into
Declaration
Objective-C
- (void)snapscreenARViewController: (SnapscreenARSnapViewController *_Nonnull)snapViewController didPrepareDrawingView:(id)drawingView;
Swift
func snapscreenARViewController(_ snapViewController: SnapscreenARSnapViewController, didPrepareDrawingView drawingView: Any!)
Parameters
snapViewController
The view controller for snapping
drawingView
The view you can use to draw into. Covers the whole screen.
-
Autosnapping did occur and found the given result (which may include more than one result entry. The result also contains the quadrangle that marks the area in view coordinates where the result was detected. Note that you will receive the same logical result multiple times in sequence if e.g. the user keeps the camera pointed at a TV. The quadrangle is continuously updated to reflect any changes in camera position.
Declaration
Objective-C
- (void)snapscreenARViewController: (SnapscreenARSnapViewController *_Nonnull)snapViewController didFindResult:(SnapscreenSearchResult *_Nonnull)result;
Swift
func snapscreenARViewController(_ snapViewController: SnapscreenARSnapViewController, didFind result: SnapscreenSearchResult)
Parameters
snapViewController
The view controller for snapping
result
The result that autosnapping has found
-
Autosnapping lost a given result.
Declaration
Objective-C
- (void)snapscreenARViewControllerDidLoseResult: (SnapscreenARSnapViewController *_Nonnull)snapViewController;
Swift
func snapscreenARViewControllerDidLoseResult(_ snapViewController: SnapscreenARSnapViewController)
Parameters
snapViewController
The view controller for snapping
-
The user did cancel snapping. You should dismiss the SnapscreenARSnapViewController.
Declaration
Objective-C
- (void)snapscreenARSnapViewControllerDidCancel: (SnapscreenARSnapViewController *_Nonnull)snapViewController;
Swift
func snapscreenARSnapViewControllerDidCancel(_ snapViewController: SnapscreenARSnapViewController)
Parameters
snapViewController
The view controller for snapping