AspectRatio

data class AspectRatio(val width: Double = 1.0, val height: Double = 1.0) : Parcelable

Aspect ratio is the ratio of the width to the height of an image or screen.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(width: Double = 1.0, height: Double = 1.0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val height: Double = 1.0

Height component of the aspect ratio.

Link copied to clipboard
val width: Double = 1.0

Width component of the aspect ratio.

Functions

Link copied to clipboard
Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JSONObject
Link copied to clipboard

Converts SDK object to JSON-compatible object.