AdScaling

How ad creatives scale inside the ad surface — the Kotlin mirror of the iOS runtime's AdScaling.

  • FIT: aspect-fit — the whole creative is visible; an aspect mismatch with the surface letterboxes against black bars.

  • FILL: aspect-fill — the creative covers the whole ad surface and the overflow is cropped symmetrically (never stretched). This is an explicit opt-in for creatives that should cover the ad surface. The web renderer's primary ad creatives use object-fit: contain; only companion/backdrop artwork uses object-fit: cover.

Entries

Link copied to clipboard

Aspect-fit: the whole creative is visible, letterboxed where the aspect ratio differs.

Link copied to clipboard

Aspect-fill: the creative covers the surface and the overflow is cropped.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

The value as written in the configuration.

Functions

Link copied to clipboard
fun valueOf(value: String): AdScaling

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.