GfpNativeAdOptions

class GfpNativeAdOptions(val theme: GfpTheme?, val adChoicesPlacement: Int, val richMediaPaddingInDp: Rect, activateObservingOnBackground: Boolean, hasMediaView: Boolean, enableMediaBackgroundBlur: Boolean, enableCustomAdChoices: Boolean, val videoOptions: GfpNativeVideoOptions) : GfpNativeAdOptionsBase

A class used to configure native ad requests.

Constructors

Link copied to clipboard
constructor(theme: GfpTheme?, adChoicesPlacement: Int, richMediaPaddingInDp: Rect, activateObservingOnBackground: Boolean, hasMediaView: Boolean, enableMediaBackgroundBlur: Boolean, enableCustomAdChoices: Boolean, videoOptions: GfpNativeVideoOptions)

Types

Link copied to clipboard
class Builder

Builder for GfpNativeAdOptions instances.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val adChoicesPlacement: Int

the ad choices placements.

Link copied to clipboard
open override val richMediaPaddingInDp: Rect

the padding for rich media type.

Link copied to clipboard
open override val theme: GfpTheme?

the GfpTheme set to native ad.

Link copied to clipboard
open override val videoOptions: GfpNativeVideoOptions

the GfpNativeVideoOptions object.

Functions

Link copied to clipboard
open override fun hasMediaView(): Boolean

Returns true if native ad has media view.

Link copied to clipboard

Returns whether to allow impression measurement of views even if the ad is rendered while the app is in the background.

Link copied to clipboard
open override fun isCustomAdChoicesEnabled(): Boolean

Returns true if native ad can be muted programmatically.

Link copied to clipboard

Returns true if the background of the media view is blurred.