GSKView

Objective-C

@interface GSKView : UIView

// Handle interface orientation change
- (void)initializeRotationWithInterfaceOrientation:(UIInterfaceOrientation)orientation;
- (void)rotateWithCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator;

// Displays the focus indicator at the requested location
- (void)animateFocusAtLocation:(CGPoint)location;

/// Updates the quadrangle overlay. Removes the quadrangle if @param quadrangle is nil.
- (void)updateQuadrangle:(GSKQuadrangle *)quadrangle;

- (void)setCaptureSession:(AVCaptureSession *)session;

/**
 Freeze the capture preview. This is very fast as this doesn't interrupt the camera session.
 */
- (void)pausePreview;

/**
 Resumes the capture preview.
 */
- (void)resumePreview;

@property (nonatomic, readonly) UIView *previewView;

/**
 The document frame layer
 */
@property (nonatomic, readonly) CAShapeLayer *frameLayer;
@property (nonatomic, readonly) CAShapeLayer *snapFrameLayer;

@property (nonatomic, copy) UIColor *overlayColor;

@property (nonatomic, weak) id <GSCViewDelegate> delegate;

@end

Swift

class GSKView : UIView

Undocumented

  • Undocumented

    Declaration

    Objective-C

    - (void)initializeRotationWithInterfaceOrientation:(UIInterfaceOrientation)orientation;

    Swift

    func initializeRotation(with orientation: UIInterfaceOrientation)
  • Undocumented

    Declaration

    Objective-C

    - (void)rotateWithCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator;

    Swift

    func rotate(with coordinator: UIViewControllerTransitionCoordinator!)
  • Undocumented

    Declaration

    Objective-C

    - (void)animateFocusAtLocation:(CGPoint)location;

    Swift

    func animateFocus(atLocation location: CGPoint)
  • Updates the quadrangle overlay. Removes the quadrangle if - parameter: quadrangle is nil.

    Declaration

    Objective-C

    - (void)updateQuadrangle:(GSKQuadrangle *)quadrangle;

    Swift

    func update(_ quadrangle: GSKQuadrangle!)
  • Undocumented

    Declaration

    Objective-C

    - (void)setCaptureSession:(AVCaptureSession *)session;

    Swift

    func setCaptureSession(_ session: AVCaptureSession!)
  • Freeze the capture preview. This is very fast as this doesn’t interrupt the camera session.

    Declaration

    Objective-C

    - (void)pausePreview;

    Swift

    func pausePreview()
  • Resumes the capture preview.

    Declaration

    Objective-C

    - (void)resumePreview;

    Swift

    func resumePreview()
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) UIView *previewView

    Swift

    var previewView: UIView! { get }
  • The document frame layer

    Declaration

    Objective-C

    @property (nonatomic, readonly) CAShapeLayer *frameLayer;

    Swift

    var frameLayer: CAShapeLayer! { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) CAShapeLayer *snapFrameLayer

    Swift

    var snapFrameLayer: CAShapeLayer! { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy) UIColor *overlayColor

    Swift

    @NSCopying var overlayColor: UIColor! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, weak) id <GSCViewDelegate> delegate

    Swift

    weak var delegate: GSCViewDelegate! { get set }