Deprecation warning

Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.

We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.

You'll find the updated documentation at: Data Capture SDK Documentation for Cordova

Scandit.Margins Class Reference

Public Member Functions

 Margins (int left, int top, int right, int bottom)
 
 Margins (String left, String top, String right, String bottom)
 

Detailed Description

Margins for a view.

Since
4.11.0

Constructor & Destructor Documentation

Margins ( int  left,
int  top,
int  right,
int  bottom 
)
Parameters
leftThe left margin.
topThe top margin.
rightThe top margin.
bottomThe bottom margin.
Margins ( String  left,
String  top,
String  right,
String  bottom 
)

Construct a new margins object by passing the margins as strings.

You may specify the margins in percent by adding a '%' at the end of the string. When expressing the margins in percent, the margin is set to the desired percentage of the screen width or height.

Parameters
leftThe left margin.
topThe top margin.
rightThe top margin.
bottomThe bottom margin.