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 DoublegetWidth()The width component of the aspect ratio. final UnitsetWidth(Double width)The width component of the aspect ratio. final DoublegetHeight()The height component of the aspect ratio. final UnitsetHeight(Double height)The height component of the aspect ratio. final JSONObjecttoJson()final static AspectRatiodefault()-
-
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()
-
-
-
-