Placeholder

data class Placeholder(val image: Placeholder.Image?, val background: Placeholder.Background)

Properties of placeholder displayed when MediaView of Native Ad is loaded lazily or failed to load.

Constructors

Link copied to clipboard
constructor(image: Placeholder.Image?, background: Placeholder.Background)

Types

Link copied to clipboard
data class Background(@ColorInt val default: Int, @ColorInt val dark: Int?)

Properties of background color for placeholder.

Link copied to clipboard
object Companion
Link copied to clipboard
data class Image(@DrawableRes val default: Int, @DrawableRes val dark: Int?, val size: Placeholder.Image.Size)

Properties of image for placeholder.

Properties

Link copied to clipboard

The background color of the placeholder view

Link copied to clipboard

The image to be displayed in the center of the placeholder view