SlyceCameraControls Protocol Reference

Conforms to NSObject
Declared in SlyceCameraControls.h

– start: required method

Starts the camera.

- (BOOL)start:(SlyceOutError)error

Parameters

error

An error that is assigned if the underlying camera cannot be started.

Discussion

Use this method to start a camera instance for the first time.

Declared In

SlyceCameraControls.h

– stop required method

Stops the camera.

- (void)stop

Discussion

Calling stop tears down the underlying AVCaptureSession and its associated inputs and outputs. After a camera is stopped, start: must be called in order to resume.

Declared In

SlyceCameraControls.h

– pause required method

Pauses the camera.

- (void)pause

Discussion

Pauses the camera, a paused camera may be resumed at a later time.

Declared In

SlyceCameraControls.h

– resume: required method

Resumes the camera.

- (BOOL)resume:(SlyceOutError)error

Parameters

error

An error that is assigned if the underlying camera cannot be resumed.

Discussion

Use this method to resume a camera instance that has already been started

Declared In

SlyceCameraControls.h

  paused required method

YES if the camera has been paused.

@property (nonatomic, readonly) BOOL paused

Declared In

SlyceCameraControls.h

  previewLayer required method

The preview layer of this camera.

@property (nonatomic, readonly, nullable) CALayer *previewLayer

Discussion

This layer may be used to view the output of the camera.

Declared In

SlyceCameraControls.h

  zoomFactor required method

The zoom factor of the camera. Defaults to 1.0.

@property (nonatomic, readonly) CGFloat zoomFactor

Discussion

This layer may be used to view the output of the camera.

Declared In

SlyceCameraControls.h

  devicePosition required method

The current position of the capture device. Defaults to AVCaptureDevicePositionBack.

@property (nonatomic, readonly) AVCaptureDevicePosition devicePosition

Declared In

SlyceCameraControls.h

– setZoomFactor:error:NS_SWIFT_NAME: required method

Sets the zoom factor of the

- (BOOL)setZoomFactor:(CGFloat)zoomFactor error:(SlyceOutError)error NS_SWIFT_NAME

Parameters

zoomFactor

The zoom factor to be set.

error

An error that is assigned if the zoom factor cannot be set.

Discussion

Use this method to start a camera instance for the first time.

Declared In

SlyceCameraControls.h

– toggleBackFront: required method

Toggles the devicePosition.

- (BOOL)toggleBackFront:(SlyceOutError)error

Parameters

error

An error that is assigned if this operation fails.

Discussion

Use this method to start a camera instance for the first time.

Declared In

SlyceCameraControls.h

– setFlashMode:error:NS_SWIFT_NAME: required method

Sets the flash mode.

- (BOOL)setFlashMode:(AVCaptureFlashMode)flashMode error:(SlyceOutError)error NS_SWIFT_NAME

Parameters

error

An error that is assigned if this operation fails.

Discussion

Use this method to set the flash mode of the camera.

Declared In

SlyceCameraControls.h

– focusAtPoint:error:NS_SWIFT_NAME: required method

Focuses the camera at the provided point.

- (BOOL)focusAtPoint:(CGPoint)point error:(SlyceOutError)error NS_SWIFT_NAME

Parameters

point

The point to be focues upon.

error

An error that is assigned if this operation fails.

Discussion

Use this method to set the flash mode of the camera.

Declared In

SlyceCameraControls.h