OverlayPosition

data class OverlayPosition(val top: Double? = null, val bottom: Double? = null, val left: Double? = null, val right: Double? = null)

Position of an overlay ad within the player surface, as fractions 0.0-1.0 of the surface (mirrors the TS OverlayPosition). Only one of {top, bottom} and one of {left, right} is typically supplied; the renderer converts these to platform layout. Brain-agnostic — only the overlay renderer reads them.

Constructors

Link copied to clipboard
constructor(top: Double? = null, bottom: Double? = null, left: Double? = null, right: Double? = null)

Properties

Link copied to clipboard

Distance from the bottom edge, as a fraction of the surface height.

Link copied to clipboard
val left: Double?

Distance from the left edge, as a fraction of the surface width.

Link copied to clipboard

Distance from the right edge, as a fraction of the surface width.

Link copied to clipboard
val top: Double?

Distance from the top edge, as a fraction of the surface height.