SizeConstraint

constructor(sizeConstraintType: SizeConstraint.SizeConstraintType, value: Float)

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.