MediaViewLazyLoadingOptions

data class MediaViewLazyLoadingOptions(val loading: Placeholder = Placeholder.DEFAULT, val failure: Placeholder? = null)

Options for media view lazy loading configuration.

Applies to Native Normal ads with the following media types:

  • IMAGE: the main image is downloaded at render time.

  • VIDEO (out-stream): VAST parsing and thumbnail image download are performed at render time.

For other ad formats (e.g. Native Simple, banner), this option is ignored.

Constructors

Link copied to clipboard
constructor(loading: Placeholder = Placeholder.DEFAULT, failure: Placeholder? = null)

Properties

Link copied to clipboard
val failure: Placeholder? = null

Placeholder shown when lazy loading fails. If null, the loading placeholder remains displayed.

Link copied to clipboard

Placeholder shown while the media view is being loaded lazily (image download or VAST parsing in progress).