Package io.scanbot.sdk.ui_v2.common
Class AspectRatio
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class AspectRatio implements Parcelable
Configuration of the finder's aspect ratio.
-
-
Constructor Summary
Constructors Constructor Description AspectRatio(Map<String, Object> source)
AspectRatio(JSONObject json)
AspectRatio(Double width, Double height)
-
Method Summary
Modifier and Type Method Description final Double
getWidth()
The width component of the aspect ratio. final Unit
setWidth(Double width)
The width component of the aspect ratio. final Double
getHeight()
The height component of the aspect ratio. final Unit
setHeight(Double height)
The height component of the aspect ratio. final JSONObject
toJson()
final static AspectRatio
default()
-
-
Method Detail
-
setHeight
final Unit setHeight(Double height)
The height component of the aspect ratio. Default is 1.0
-
toJson
final JSONObject toJson()
-
default
final static AspectRatio default()
-
-
-
-