Skip to main content

Choose a Viewfinder

A viewfinder shows the user where to aim the camera. By default, the Barcode Capture overlay has no viewfinder.

Examples shown on iOS.

Check Framework Availability​

FrameworksBuilt-in viewfinders
Android, iOS, Web, Flutter, React Native, Capacitor, CordovaAimer, Rectangular, Laserline
Kotlin Multiplatform, Titanium, .NET for iOS, .NET for AndroidAimer, Rectangular
Linux (C API)None. Your application provides the scanning UI.

Restrict the Scan Area​

The viewfinder guides the user in the camera preview. To restrict the scan area, configure location selection.

For the Aimer, use radius location selection. Barcode Capture can return any barcode that intersects the circle around the point of interest. For a rectangular viewfinder, use rectangular location selection with the same dimensions as the frame.

See Radius Location Selection and Rectangular Location Selection for configuration options.

Add an Aimer to the Overlay​

After creating the overlay in Get Started, assign an Aimer to it.

overlay.viewfinder = new ScanditCore.AimerViewfinder();

See the Viewfinder API reference for the available types and their settings.