NativeNormalApi

abstract class NativeNormalApi(nativeAdOptions: <Error class: unknown class>, callback: NativeNormalApi.Callback) : NativeAssetProvider

Only inside SDK, get asset and track ad

Constructors

Link copied to clipboard
constructor(nativeAdOptions: <Error class: unknown class>, callback: NativeNormalApi.Callback)

Types

Link copied to clipboard
interface Callback

Inside SDK, lifecycle callback for api

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Returns the {@link GfpAdChoicesData} associated with this ad.

Link copied to clipboard
open override fun getAdStyleOption(): AdStyleOption?

Returns style information (ex. background color) for ad view.

Link copied to clipboard

Returns the advertiser name with option.

Link copied to clipboard
open override fun getBodyWithOption(): LabelOption?

Returns the body with option.

Link copied to clipboard

Returns the CTA with option.

Link copied to clipboard
open override fun getExtraImage(key: String): Image?

Returns the extra image corresponding to the key.

Link copied to clipboard
open override fun getExtraText(key: String): String?

Returns the extra text corresponding to the key.

Link copied to clipboard
open override fun getExtraTextWithOption(key: String): LabelOption?

Returns the extra text with option corresponding to the key.

Link copied to clipboard
abstract fun getIconAltText(): String?

Returns the alt text of icon asset.

Link copied to clipboard
Link copied to clipboard
abstract fun getMediaAltText(): String?

Returns the alt text of media asset.

Link copied to clipboard
abstract fun getMediaData(): GfpMediaData

Returns the {@link GfpMediaData} associated with this ad.

Link copied to clipboard
open override fun getNotice(): String?

Returns the notice text.

Link copied to clipboard
open override fun getNoticeWithOption(): LabelOption?

Returns the notice with option.

Link copied to clipboard
abstract fun getRenderType(): RenderType
Link copied to clipboard
Link copied to clipboard
open override fun getTitleWithOption(): LabelOption?

Returns the title with option.

Link copied to clipboard
Link copied to clipboard
abstract fun isAdInvalidated(): Boolean
Link copied to clipboard

Returns 'true' if this ad can be muted programmatically, false otherwise.

Link copied to clipboard
open fun muteAd(feedback: AdMuteFeedback)

Mutes this ad programmatically.

Link copied to clipboard
fun trackView(adView: GfpNativeAdView, clickableViews: Map<String, View>)
Link copied to clipboard
fun untrackView(adView: GfpNativeAdView, removeInnerAdView: Boolean)