Package com.my.target.nativeads.views
Interface PromoCardView
- All Known Implementing Classes:
NativeAdCardView
public interface PromoCardView
Interface should be implemented by custom card view.
All data for a card will be stored in
Card and the instance which implemented PromoCardView must use it within view implementation.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe class with data for implementer ofPromoCardView -
Method Summary
Modifier and TypeMethodDescriptionandroid.view.ViewgetView()voidsetCard(PromoCardView.Card card) Sets Card instance with all required fields for PromoCard.voidsetCtaOnClickListener(android.view.View.OnClickListener ctaClickListener) You must to set the listener to your CTA button to track taps.
-
Method Details
-
setCard
Sets Card instance with all required fields for PromoCard.- Parameters:
card- An instance which implementedCard.
-
setCtaOnClickListener
void setCtaOnClickListener(android.view.View.OnClickListener ctaClickListener) You must to set the listener to your CTA button to track taps.- Parameters:
ctaClickListener- Instance of theView.OnClickListener- See Also:
-
View.setOnClickListener(View.OnClickListener)
-
getMediaAdView
MediaAdView getMediaAdView()- Returns:
- MediaAdView for displaying picture/video
-
getView
android.view.View getView()- Returns:
- Whole view of advertising card
-