GSKCameraViewController

Objective-C

@interface GSKCameraViewController : UIViewController <GSKCameraSessionDelegate>

Swift

class GSKCameraViewController : UIViewController, GSKCameraSessionDelegate

A GSKCameraViewController is a ready-to-use camera interface for scanning documents.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithCoder:(NSCoder *)aDecoder  NS_UNAVAILABLE;
  • Declaration

    Objective-C

    - (instancetype)initWithCameraSession:(GSKCameraSession *)cameraSession;

    Swift

    init!(cameraSession: GSKCameraSession!)

    Parameters

    cameraSession

    The camera session to use for this view controller

  • The camera view. Use this view in your layout.

    Declaration

    Objective-C

    @property (nonatomic, readonly) UIView *cameraView;

    Swift

    var cameraView: UIView! { get }
  • The view containing the preview layer

    Declaration

    Objective-C

    @property (nonatomic, strong) GSKView *captureView;

    Swift

    var captureView: GSKView! { get set }
  • The view appearing when the photo is being taken, similar to a shutter screen on a real camera.

    Declaration

    Objective-C

    @property (nonatomic, readonly) GSKShutterView *shutterView;

    Swift

    var shutterView: GSKShutterView! { get }
  • Trigger the photo

    Declaration

    Objective-C

    - (void)takePhoto;

    Swift

    func takePhoto()
  • Customize the overlay color.

    Declaration

    Objective-C

    @property (nonatomic, copy) UIColor *overlayColor;

    Swift

    @NSCopying var overlayColor: UIColor! { get set }
  • The camera session associated to this camera view controller

    Declaration

    Objective-C

    @property (nonatomic, readonly) GSKCameraSession *cameraSession;

    Swift

    var cameraSession: GSKCameraSession! { get }