Table of Contents

Class SBSDKCameraSession

Namespace
ScanbotSDK.iOS
Assembly
DocumentSDK.NET.iOS.dll
public class SBSDKCameraSession : NSObject
Inheritance
SBSDKCameraSession
Extension Methods

Constructors

SBSDKCameraSession(NSObjectFlag?)

protected SBSDKCameraSession(NSObjectFlag? t)

Parameters

t NSObjectFlag

SBSDKCameraSession(NativeHandle?)

protected SBSDKCameraSession(NativeHandle? handle)

Parameters

handle NativeHandle

SBSDKCameraSession(SBSDKFeature)

public SBSDKCameraSession(SBSDKFeature feature)

Parameters

feature SBSDKFeature

SBSDKCameraSession(SBSDKFeature, SBSDKCameraDevice)

public SBSDKCameraSession(SBSDKFeature feature, SBSDKCameraDevice device)

Parameters

feature SBSDKFeature
device SBSDKCameraDevice

Properties

CaptureSession

public virtual AVCaptureSession? CaptureSession { get; set; }

Property Value

AVCaptureSession

ClassHandle

public override NativeHandle? ClassHandle { get; }

Property Value

NativeHandle

Device

public virtual SBSDKCameraDevice Device { get; set; }

Property Value

SBSDKCameraDevice

ExposureSettings

public virtual SBSDKCameraExposureSettings? ExposureSettings { get; }

Property Value

SBSDKCameraExposureSettings

IsCameraAdjusting

public virtual bool IsCameraAdjusting { get; }

Property Value

bool

IsCapturingStillImage

public virtual bool IsCapturingStillImage { get; }

Property Value

bool

IsDetectionPaused

public virtual bool IsDetectionPaused { get; }

Property Value

bool

IsFocusLockEnabled

public virtual bool IsFocusLockEnabled { get; }

Property Value

bool

IsFrontCameraUsed

public virtual bool IsFrontCameraUsed { get; }

Property Value

bool

IsSessionRunning

public virtual bool IsSessionRunning { get; }

Property Value

bool

IsTorchLightAvailable

public virtual bool IsTorchLightAvailable { get; }

Property Value

bool

IsTorchLightEnabled

public virtual bool IsTorchLightEnabled { get; set; }

Property Value

bool

IsZoomAvailable

public virtual bool IsZoomAvailable { get; }

Property Value

bool

IsZooming

public virtual bool IsZooming { get; }

Property Value

bool

MaxOpticalZoom

public virtual NFloat MaxOpticalZoom { get; }

Property Value

NFloat

MaxZoom

public virtual NFloat MaxZoom { get; }

Property Value

NFloat

MinZoom

public virtual NFloat MinZoom { get; }

Property Value

NFloat

PhotoQualityPrioritization

public virtual SBSDKCapturePhotoQualityPrioritization PhotoQualityPrioritization { get; set; }

Property Value

SBSDKCapturePhotoQualityPrioritization

PreviewLayer

public virtual AVCaptureVideoPreviewLayer PreviewLayer { get; set; }

Property Value

AVCaptureVideoPreviewLayer

UpdateTorchlightBlock

public virtual Action? UpdateTorchlightBlock { get; set; }

Property Value

Action

UpdateZoomBlock

public virtual Action<NFloat>? UpdateZoomBlock { get; set; }

Property Value

Action<NFloat>

VideoContentMode

public virtual SBSDKVideoContentMode VideoContentMode { get; set; }

Property Value

SBSDKVideoContentMode

VideoDelegate

public SBSDKCameraSessionDelegate? VideoDelegate { get; set; }

Property Value

SBSDKCameraSessionDelegate

VideoFrameResolution

public virtual SBSDKVideoFrameResolution VideoFrameResolution { get; set; }

Property Value

SBSDKVideoFrameResolution

VideoOrientation

public virtual AVCaptureVideoOrientation? VideoOrientation { get; set; }

Property Value

AVCaptureVideoOrientation

VideoResolution

public virtual CGSize? VideoResolution { get; }

Property Value

CGSize

WeakVideoDelegate

public virtual NSObject? WeakVideoDelegate { get; set; }

Property Value

NSObject

ZoomValue

public virtual NFloat ZoomValue { get; set; }

Property Value

NFloat

Methods

AddSessionObserver(SBSDKCameraSessionObserving)

public virtual void AddSessionObserver(SBSDKCameraSessionObserving observer)

Parameters

observer SBSDKCameraSessionObserving

BeginFocusLockAtLensPosition(NFloat)

public virtual bool BeginFocusLockAtLensPosition(NFloat lensPosition)

Parameters

lensPosition NFloat

Returns

bool

CaptureStillImageWithCompletionHandler(Action<NSData, NSError>)

public virtual void CaptureStillImageWithCompletionHandler(Action<NSData, NSError> completion)

Parameters

completion Action<NSData, NSError>

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool

EndFocusLock()

public virtual void EndFocusLock()

FreezeSession()

public virtual void FreezeSession()

ObserveValueForKeyPathOfObject(string?, NSObject?, NSDictionary<NSString, NSObject>?, nint)

public virtual void ObserveValueForKeyPathOfObject(string? keyPath, NSObject? @object, NSDictionary<NSString, NSObject>? change, nint context)

Parameters

keyPath string
object NSObject
change NSDictionary<NSString, NSObject>
context nint

PauseDetection()

public virtual void PauseDetection()

RemoveSessionObserver(SBSDKCameraSessionObserving)

public virtual void RemoveSessionObserver(SBSDKCameraSessionObserving observer)

Parameters

observer SBSDKCameraSessionObserving

ResetZoomAnimated(bool)

public virtual void ResetZoomAnimated(bool animated)

Parameters

animated bool

ResumeDetection()

public virtual void ResumeDetection()

SetPreviewLayerVisible(bool, bool)

public virtual void SetPreviewLayerVisible(bool visible, bool animated)

Parameters

visible bool
animated bool

SetZoomValue(NFloat, bool)

public virtual void SetZoomValue(NFloat value, bool animated)

Parameters

value NFloat
animated bool

StartSession(Action<bool>?)

public virtual void StartSession(Action<bool>? completion)

Parameters

completion Action<bool>

StopSession()

public virtual void StopSession()

UnfreezeSession()

public virtual void UnfreezeSession()