SizeConstraint

class SizeConstraint(val sizeConstraintType: SizeConstraint.SizeConstraintType, val value: Float) : Parcelable

SizeConstraint defines the way size is calculated based on banner size.

Parameters

sizeConstraintType

Constraint size type.

value

Constraint value. Value meaning differs depending on size type. Fixed value in points for SizeConstraintType.FIXED, e.g. 140. Ratio value for SizeConstraintType.FIXED_RATIO between 0 and 1, e.g. 0.5 value means size of 100 points for 200 banner size. Ratio value for SizeConstraintType.PREFERRED_RATIO between 0 and 1.

See also

Constructors

Link copied to clipboard
constructor(sizeConstraintType: SizeConstraint.SizeConstraintType, value: Float)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open val value: Float

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)