Configuration of the scanning interface’s viewfinder, allowing it to be shown or hidden as guidance to the user.

Hierarchy

  • PartiallyConstructible
    • ViewFinderConfiguration

Constructors

Properties

_type: "ViewFinderConfiguration"
aspectRatio: AspectRatio

The viewfinder's aspect ratio.

Default Value

new AspectRatio({
"width": 1.0,
"height": 1.0
});
minimumInsets: EdgeInsets

The minimum insets of the viewfinder.

Default Value

new EdgeInsets({
"top": 16.0,
"left": 16.0,
"bottom": 16.0,
"right": 16.0
});
overlayColor: string

The color of the viewfinder overlay.

Default Value

"?sbColorSurfaceLow";
preferredHeight: number

The preferred height of the viewfinder.

Default Value

-1.0;

The visual appearance of the viewfinder.

Default Value

new FinderCorneredStyle({
"strokeColor": "?sbColorSurface",
"strokeWidth": 2.0,
"cornerRadius": 10.0
});
visible: boolean

Whether the viewfinder is visible.

Default Value

true;

Generated using TypeDoc