Placeholder

data class Placeholder(@DrawableRes val image: Int, @DrawableRes val darkImage: Int, val imageSize: SizeF, @ColorInt val backgroundColor: Int, @ColorInt val darkBackgroundColor: Int)

Properties of placeholder displayed when MediaView of Native Ad is loaded lazily. The image is displayed in the center of the view with the size of imageSize.

Constructors

Link copied to clipboard
constructor(@DrawableRes image: Int, @DrawableRes darkImage: Int, imageSize: SizeF, @ColorInt backgroundColor: Int, @ColorInt darkBackgroundColor: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The background color int in light mode.

Link copied to clipboard

The background color int in dark mode.

Link copied to clipboard

The resource ID of the image to be displayed in dark mode.

Link copied to clipboard
val image: Int

The resource ID of the image to be displayed in light mode.

Link copied to clipboard

The size of the image to be displayed in dp. Width and height must be greater than zero.