ALCaptureDeviceManager Class Reference

Inherits from NSObject
Declared in ALCaptureDeviceManager.h

– initWithCameraConfig:

- (instancetype _Nullable)initWithCameraConfig:(ALCameraConfig *_Nonnull)cameraConfig

  barcodeDelegates

The native Barcode Recognition Delegate. Implement this delegate to receive barcodes results during scanning.

@property (nonatomic, strong, readonly) NSHashTable<AnylineNativeBarcodeDelegate> *barcodeDelegates

Discussion

Warning: Do not implement this delegate when you use the Barcode module.

Declared In

ALCaptureDeviceManager.h

  sampleBufferDelegates

The Sample Buffer Delegate gives you access to the video frames. You will get frames around 25 times per second. Do only access as much frames as you need, otherwise the performance will suffer.

@property (nonatomic, strong, readonly) NSHashTable<AnylineVideoDataSampleBufferDelegate> *sampleBufferDelegates

Declared In

ALCaptureDeviceManager.h

  cameraConfig

@property (nullable, nonatomic, strong) ALCameraConfig *cameraConfig

  previewLayer

@property (nullable, nonatomic, strong) AVCaptureVideoPreviewLayer *previewLayer

  captureDevice

@property (nullable, nonatomic, strong) AVCaptureDevice *captureDevice

  session

@property (nullable, nonatomic, strong) AVCaptureSession *session

  videoResolution

@property (nonatomic, assign) CGSize videoResolution

– addBarcodeDelegate:

- (void)addBarcodeDelegate:(id<AnylineNativeBarcodeDelegate> _Nonnull)delegate

– addBarcodeDelegate:error:

- (BOOL)addBarcodeDelegate:(id<AnylineNativeBarcodeDelegate> _Nonnull)delegate error:(NSError *_Nullable *_Nullable)error

– removeBarcodeDelegate:

- (void)removeBarcodeDelegate:(id<AnylineNativeBarcodeDelegate> _Nonnull)delegate

– addSampleBufferDelegate:

- (void)addSampleBufferDelegate:(id<AnylineVideoDataSampleBufferDelegate> _Nonnull)delegate

– removeSampleBufferDelegate:

- (void)removeSampleBufferDelegate:(id<AnylineVideoDataSampleBufferDelegate> _Nonnull)delegate

– addVideoLayerOnView:

- (void)addVideoLayerOnView:(UIView *_Nonnull)view

– updateVideoLayer:

- (void)updateVideoLayer:(UIView *_Nonnull)view

– setFocusAndExposurePoint:

- (void)setFocusAndExposurePoint:(CGPoint)point

– setZoomLevel:

- (void)setZoomLevel:(CGFloat)zoomFactor

– startSession

- (void)startSession

– stopSession

- (void)stopSession

– isRunning

- (BOOL)isRunning

– fullResolutionPointForPointInPreview:

- (CGPoint)fullResolutionPointForPointInPreview:(CGPoint)inPoint

– currentInterfaceOrientation

- (UIInterfaceOrientation)currentInterfaceOrientation

– getOrientationAdaptedCaptureConnection

- (AVCaptureConnection *_Nullable)getOrientationAdaptedCaptureConnection

+ cameraPermissionStatus

+ (AVAuthorizationStatus)cameraPermissionStatus

+ requestCameraPermission:

+ (void)requestCameraPermission:(void ( ^ _Nonnull ) ( BOOL granted ))handler

– captureStillImageAsynchronouslyWithCompletionHandler:

- (void)captureStillImageAsynchronouslyWithCompletionHandler:(void ( ^ _Nonnull ) ( CMSampleBufferRef _Nullable imageDataSampleBuffer , NSError *_Nullable error ))handler