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
The bottom margin of the background in dp. Default is 0.
Link copied to clipboard
The corner radius of the background in dp. Default is 8dp.
Link copied to clipboard
The left margin of the background in dp. Default is 8dp.
Link copied to clipboard
The right margin of the background in dp. Default is 8dp.
Link copied to clipboard
The alpha (opacity) value of the shadow. Default is 0f (fully transparent).
Link copied to clipboard
The blur radius of the shadow in dp. Default is 0.
Link copied to clipboard
The shadow color (int). Default is null (no shadow).