Class DocumentScannerCameraConfiguration

    • Method Detail

      • getFlashEnabled

         final Boolean getFlashEnabled()

        Determines whether the flashlight is enabled or not on start-up. Default is false

      • setFlashEnabled

         final Unit setFlashEnabled(Boolean flashEnabled)

        Determines whether the flashlight is enabled or not on start-up. Default is false

      • getMinFocusDistanceLock

         final Boolean getMinFocusDistanceLock()

        Determines whether locking the focus at the minimum possible distance is enabled or not (device-specific). Default is false

      • setMinFocusDistanceLock

         final Unit setMinFocusDistanceLock(Boolean minFocusDistanceLock)

        Determines whether locking the focus at the minimum possible distance is enabled or not (device-specific). Default is false

      • getTouchToFocusEnabled

         final Boolean getTouchToFocusEnabled()

        Determines whether touch-to-focus is enabled or not. Android only. Default is false

      • setTouchToFocusEnabled

         final Unit setTouchToFocusEnabled(Boolean touchToFocusEnabled)

        Determines whether touch-to-focus is enabled or not. Android only. Default is false

      • getAcceptedAngleScore

         final Double getAcceptedAngleScore()

        The minimum pitch/skew angle of the document to be accepted. The value must be between 0.0 and 1.0. Default is 0.75

      • setAcceptedAngleScore

         final Unit setAcceptedAngleScore(Double acceptedAngleScore)

        The minimum pitch/skew angle of the document to be accepted. The value must be between 0.0 and 1.0. Default is 0.75

      • getAcceptedSizeScore

         final Double getAcceptedSizeScore()

        The minimum size of the document in relation to the screen preview to be accepted. The value must be between 0.0 and 1.0. Default is 0.75

      • setAcceptedSizeScore

         final Unit setAcceptedSizeScore(Double acceptedSizeScore)

        The minimum size of the document in relation to the screen preview to be accepted. The value must be between 0.0 and 1.0. Default is 0.75

      • getAutoSnappingSensitivity

         final Double getAutoSnappingSensitivity()

        Controls the auto snapping speed. The sensitivity must be between 0.0 and 1.0. A value of 1.0 triggers auto snapping immediately, while a value of 0.0 delays the auto snapping by 3 seconds. The default value is 0.66 (2 seconds). Default is 0.66

      • setAutoSnappingSensitivity

         final Unit setAutoSnappingSensitivity(Double autoSnappingSensitivity)

        Controls the auto snapping speed. The sensitivity must be between 0.0 and 1.0. A value of 1.0 triggers auto snapping immediately, while a value of 0.0 delays the auto snapping by 3 seconds. The default value is 0.66 (2 seconds). Default is 0.66

      • getAutoSnappingDelay

         final Integer getAutoSnappingDelay()

        After a page has been snapped, the delay in milliseconds before auto snapping resumes for the next page. Default is 200

      • setAutoSnappingDelay

         final Unit setAutoSnappingDelay(Integer autoSnappingDelay)

        After a page has been snapped, the delay in milliseconds before auto snapping resumes for the next page. Default is 200

      • getIgnoreBadAspectRatio

         final Boolean getIgnoreBadAspectRatio()

        Determines whether a landscape document will be detected when the camera is in portrait mode (and vice versa) or not. This parameter will be ignored if required aspect ratios have been explicitly defined. Default is true

      • setIgnoreBadAspectRatio

         final Unit setIgnoreBadAspectRatio(Boolean ignoreBadAspectRatio)

        Determines whether a landscape document will be detected when the camera is in portrait mode (and vice versa) or not. This parameter will be ignored if required aspect ratios have been explicitly defined. Default is true

      • getCaptureWithHardwareButtonsEnabled

         final Boolean getCaptureWithHardwareButtonsEnabled()

        When enabled the hardware volume up/down buttons can be used to capture an image if manual snapping is enabled. For iOS version 17.2 or later is required. On iPhones with camera control (iPhone 16 series) this also enables zooming and capturing with the camera control. Default is true

      • setCaptureWithHardwareButtonsEnabled

         final Unit setCaptureWithHardwareButtonsEnabled(Boolean captureWithHardwareButtonsEnabled)

        When enabled the hardware volume up/down buttons can be used to capture an image if manual snapping is enabled. For iOS version 17.2 or later is required. On iPhones with camera control (iPhone 16 series) this also enables zooming and capturing with the camera control. Default is true