LabelOption

interface LabelOption

A class used to render label asset of native ad.

Properties

Link copied to clipboard
abstract val bgColor: Int?

The background color.

Link copied to clipboard
abstract val bgColorInDarkTheme: Int?

The background color in dark theme.

Link copied to clipboard
abstract val borderColor: Int?

The border color.

Link copied to clipboard

The border color in dark theme.

Link copied to clipboard
abstract val highlightedBgColor: Int?

The highlighted background color.

Link copied to clipboard

The highlighted background color in dark theme.

Link copied to clipboard
abstract val isBold: Boolean

Whether a style of the text is bold or not.

Link copied to clipboard

Whether a style of the text is bold or not in dark theme.

Link copied to clipboard
abstract val labelSpans: List<NativeAsset.LabelSpan>?

The list of spannable texts.

Link copied to clipboard
abstract val labelSpansInDarkTheme: List<NativeAsset.LabelSpan>?

The list of spannable texts in dark theme.

Link copied to clipboard
abstract val text: String

The text that should be set in the view corresponding to the label.

Link copied to clipboard
abstract val textColor: Int?

The text color.

Link copied to clipboard
abstract val textColorInDarkTheme: Int?

The text color in dark theme.

Functions

Link copied to clipboard
abstract fun getBgColor(context: Context): Int?

Returns the background color corresponding to the GfpTheme.

Link copied to clipboard
abstract fun getBorderColor(context: Context): Int?

Returns the border color corresponding to the GfpTheme.

Link copied to clipboard
abstract fun getHighlightedBgColor(context: Context): Int?

Returns the highlighted background color corresponding to the GfpTheme.

Link copied to clipboard
abstract fun getLabelSpans(context: Context): List<NativeAsset.LabelSpan>?

Returns the list of spannable texts corresponding to the GfpTheme.

Link copied to clipboard
abstract fun getTextColor(context: Context): Int?

Returns the text font color corresponding to the GfpTheme.

Link copied to clipboard
abstract fun isBold(context: Context): Boolean?

Return the bold corresponding to the GfpTheme.