NativeAdViewHolder

constructor(presentation: NativeAdPresentation, root: NativeAdView, content: LinearLayout, label: TextView, media: MediaView?, mediaFrame: View?, icon: ImageView?, iconFrame: View?, headline: TextView, body: TextView?, advertiser: TextView, callToAction: TextView?, decorate: NativeAdViewHolder.(palette: NativeAdPalette, style: NativeAdStyle) -> Unit? = null)(source)

Parameters

decorate

Runs at the end of applyPalette, for a custom NativeAdViewFactory whose layout has views the holder does not know about (a card behind part of the ad, a header icon) or that finishes a known view differently (a disclosure label drawn as a title instead of a chip). It runs on every repaint, so it follows theme changes the same way the holder's own views do.