SBSDKUIDocumentScannerBehaviorConfiguration

@interface SBSDKUIDocumentScannerBehaviorConfiguration : NSObject

Subconfiguration for the behavior of the document scanning screen.

  • Whether auto-snapping is enabled or not.

    Declaration

    Objective-C

    @property (getter=isAutoSnappingEnabled, assign, readwrite, nonatomic)
        BOOL autoSnappingEnabled;

    Swift

    var isAutoSnappingEnabled: Bool { get set }
  • Whether multi-page snapping is enabled or not.

    Declaration

    Objective-C

    @property (getter=isMultiPageEnabled, assign, readwrite, nonatomic)
        BOOL multiPageEnabled;

    Swift

    var isMultiPageEnabled: Bool { get set }
  • Whether flash is toggled on or off.

    Declaration

    Objective-C

    @property (getter=isFlashEnabled, assign, readwrite, nonatomic)
        BOOL flashEnabled;

    Swift

    var isFlashEnabled: Bool { get set }
  • The scaling factor for captured images. Values are clamped to the range 0.0 - 1.0.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat imageScale;

    Swift

    var imageScale: CGFloat { get set }
  • Limits the maximum size of the document image. If width or height are zero, this property is effectively ignored. Defaults to CGSizeZero.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGSize documentImageSizeLimit;

    Swift

    var documentImageSizeLimit: CGSize { get set }
  • The sensivity of auto-snapping. Values are clamped to the range 0.0 - 1.0. A value of 1.0 triggers automatic snapping immediately, a value of 0.0 delays the automatic by 3 seconds.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat autoSnappingSensitivity;

    Swift

    var autoSnappingSensitivity: CGFloat { get set }
  • The minimum score in percent (0 - 100) of the perspective distortion to accept a detected document. Default is 75.0. Set lower values to accept more perspective distortion. Warning: Lower values result in more blurred document images.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) double acceptedAngleScore;

    Swift

    var acceptedAngleScore: Double { get set }
  • The minimum size in percent (0 - 100) of the screen size to accept a detected document. It is sufficient that height or width match the score. Default is 80.0. Warning: Lower values result in low resolution document images.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) double acceptedSizeScore;

    Swift

    var acceptedSizeScore: Double { get set }
  • The video layers content mode.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        SBSDKUIVideoContentMode cameraPreviewMode;

    Swift

    var cameraPreviewMode: SBSDKUIVideoContentMode { get set }
  • The preferred orientation of captured images.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        SBSDKOrientationLock orientationLockMode;

    Swift

    var orientationLockMode: SBSDKOrientationLock { get set }
  • If set to YES, ignores the aspect ratio warning.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL ignoreBadAspectRatio;

    Swift

    var ignoreBadAspectRatio: Bool { get set }
  • The default image filter type for new documents pages. Defaults to SBSDKImageFilterTypeNone.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) SBSDKImageFilterType defaultPageFilter;

    Swift

    var defaultPageFilter: SBSDKImageFilterType { get set }
  • If set to YES, the default, the camera session will be stopped entirely, when the receiver disappears and restarts when the receiver reappears. There is no CPU usage while the receiver is not on screen.

    NO will NOT stop the camera session, but pause the delivery of video frames and QR codes. There is some very low CPU activity while the receiver is not on screen, but there is also no lag when the receiver returns to the screen.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL stopsCameraSessionWhenDisappeared;

    Swift

    var stopsCameraSessionWhenDisappeared: Bool { get set }
  • Maximum number of pages to scan. Ignored when set to nil, or when multiPageEnabled is NO. Default is nil.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSNumber *maxNumberOfPages;

    Swift

    var maxNumberOfPages: NSNumber? { get set }