SBSDKFinderMode

enum SBSDKFinderMode {}

This enum describes the possible modes of the view finder during scanning.

  • The view finder is hidden.

    Declaration

    Objective-C

    SBSDKFinderModeDisabled = 0

    Swift

    case disabled = 0
  • Sets the finder mode to enabled when requiredAspectRatios is non-empty, disables it otherwise. Once the finder mode is active the polygon layer is hidden. When a polygon is detected, that matches any of the requiredAspectRatios the view finder is displayed with the aspect ratio of the match. Otherwise the view finder is turned off.

    Declaration

    Objective-C

    SBSDKFinderModeAspectRatioAutomatic = 1

    Swift

    case aspectRatioAutomatic = 1
  • The view finder is always displayed. If one of the aspect ratios in requiredAspectRatios matches, the view finder uses this aspect ratio. Otherwise it uses requiredAspectRatios first entry.

    Declaration

    Objective-C

    SBSDKFinderModeAspectRatioAlways = 2

    Swift

    case aspectRatioAlways = 2
  • Can be used when scanning barcodes. Sets the finder mode to enabled when capturingFrameSize does not equal to CGRectZero, disables it otherwise. When the barcode is outside the capturing frame, it is ignored by the scanner.

    Declaration

    Objective-C

    SBSDKFinderModeCapturingFrame = 3

    Swift

    case capturingFrame = 3