GfpNativeSimpleBackgroundStyle

data class GfpNativeSimpleBackgroundStyle(    val color: Int = "#EDF0F4".toColorInt(),     val alpha: Float = 0.74f,     val cornerRadius: Int = 8,     val leftMargin: Int = 8,     val topMargin: Int = 0,     val rightMargin: Int = 8,     val bottomMargin: Int = 0,     val maxWidth: Int = 414,     val shadowColor: Int? = null,     val shadowAlpha: Float = 0.0f,     val shadowX: Int = 0,     val shadowY: Int = 0,     val shadowBlur: Int = 0)

A data class representing the background style for a native simple ad.

Constructors

Link copied to clipboard
constructor(    color: Int = "#EDF0F4".toColorInt(),     alpha: Float = 0.74f,     cornerRadius: Int = 8,     leftMargin: Int = 8,     topMargin: Int = 0,     rightMargin: Int = 8,     bottomMargin: Int = 0,     maxWidth: Int = 414,     shadowColor: Int? = null,     shadowAlpha: Float = 0.0f,     shadowX: Int = 0,     shadowY: Int = 0,     shadowBlur: Int = 0)

Properties

Link copied to clipboard
val alpha: Float = 0.74f

The alpha (opacity) value of the background. Default is 0.74f.

Link copied to clipboard
val bottomMargin: Int = 0

The bottom margin of the background in dp. Default is 0.

Link copied to clipboard
val color: Int

The background color (int). Default is "#EDF0F4".

Link copied to clipboard
val cornerRadius: Int = 8

The corner radius of the background in dp. Default is 8dp.

Link copied to clipboard
val leftMargin: Int = 8

The left margin of the background in dp. Default is 8dp.

Link copied to clipboard
val maxWidth: Int = 414

The maximum width of the background in dp. Default is 414dp.

Link copied to clipboard
val rightMargin: Int = 8

The right margin of the background in dp. Default is 8dp.

Link copied to clipboard
val shadowAlpha: Float = 0.0f

The alpha (opacity) value of the shadow. Default is 0f (fully transparent).

Link copied to clipboard
val shadowBlur: Int = 0

The blur radius of the shadow in dp. Default is 0.

Link copied to clipboard
val shadowColor: Int? = null

The shadow color (int). Default is null (no shadow).

Link copied to clipboard
val shadowX: Int = 0

The horizontal offset of the shadow in dp. Default is 0.

Link copied to clipboard
val shadowY: Int = 0

The vertical offset of the shadow in dp. Default is 0.

Link copied to clipboard
val topMargin: Int = 0

The top margin of the background in dp. Default is 0.

Functions

Link copied to clipboard
fun toStyleRecord(): StyleRecord

Converts the background style to a StyleRecord object.