Builder

class Builder

Builder for GfpNativeAdOptions instances.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
fun setActivateObservingOnBackground(activateObservingOnBackground: Boolean): <Error class: unknown class>

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

Link copied to clipboard
fun setAdChoicesPlacement(adChoicesPlacement: Int): <Error class: unknown class>

Sets the ad choices placement.

Link copied to clipboard
fun setEnableMediaBackgroundBlur(enable: Boolean): <Error class: unknown class>

Sets whether to blur the background of a mediaView or not.

Link copied to clipboard
fun setHasMediaView(hasMediaView: Boolean): <Error class: unknown class>

Sets whether the native ad has media view.

Link copied to clipboard
fun setMediaViewLazyLoading(options: MediaViewLazyLoadingOptions, listener: MediaViewLazyLoadingListener? = null): <Error class: unknown class>

Sets options and listener to enable media view lazy loading feature. Currently media view lazy loading is only supported for IMAGE media type.

Link copied to clipboard
fun setRichMediaPaddingInDp(richMediaPaddingInDp: Rect): <Error class: unknown class>

Sets the rich media padding.

Link copied to clipboard
fun setTheme(theme: GfpTheme): <Error class: unknown class>

Sets the GfpTheme.