NativeTemplateApi

class NativeTemplateApi(nativeSimpleAdOptions: GfpNativeSimpleAdOptions, nativeNormalApi: NativeNormalApi) : NativeSimpleApi

Constructors

Link copied to clipboard
constructor(nativeSimpleAdOptions: GfpNativeSimpleAdOptions, nativeNormalApi: NativeNormalApi)

Types

Link copied to clipboard
object Companion

Functions

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
open override fun getImage(): Image?

Returns the image asset for the native ad. This method may return null if no image is available.

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

Returns the alt text of media asset.

Link copied to clipboard
open override fun getMediaData(): GfpMediaData

Returns the GfpMediaData associated with this ad.

Link copied to clipboard
Link copied to clipboard
open override fun getTracker(): NativeSimpleAdTracker
Link copied to clipboard
open override fun getVisualKey(): String?
Link copied to clipboard
open override fun isAdInvalidated(): Boolean
Link copied to clipboard
open override fun registerFriendlyObstructionView(view: View)
Link copied to clipboard
open override fun trackView(adView: GfpNativeSimpleAdView)
Link copied to clipboard
open override fun untrackView(adView: GfpNativeSimpleAdView)