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
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
-
left The left margin. top The top margin. right The top margin. bottom The 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
-
left The left margin. top The top margin. right The top margin. bottom The bottom margin.