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 setEnableImageAssetsPreload(enable: Boolean): <Error class: unknown class>

Sets whether to preload image assets (icon and extraImage) excluding media before rendering the ad. When enabled, image assets will be preloaded for better rendering performance.

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 setSlotMediaViewLazyLoading(options: MediaViewLazyLoadingOptions): <Error class: unknown class>

Sets lazy loading options for media views placed within slots.

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

Sets the GfpTheme.