Package com.my.target.nativeads.views
Interface PromoCardView
-
- All Implemented Interfaces:
public interface PromoCardViewInterface 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 Classes Modifier and Type Class Description public abstract classPromoCardView.CardThe class with data for implementer of PromoCardView
-
Method Summary
Modifier and Type Method Description abstract MediaAdViewgetMediaAdView()abstract ViewgetView()abstract voidsetCard(@NonNull() PromoCardView.Card card)Sets Card instance with all required fields for PromoCard. abstract voidsetCtaOnClickListener(@Nullable() View.OnClickListener ctaClickListener)You must to set the listener to your CTA button to track taps. -
-
Method Detail
-
getMediaAdView
@NonNull() abstract MediaAdView getMediaAdView()
- Returns:
MediaAdView for displaying picture/video
-
getView
@NonNull() abstract View getView()
- Returns:
Whole view of advertising card
-
setCard
abstract void setCard(@NonNull() PromoCardView.Card card)
Sets Card instance with all required fields for PromoCard.
- Parameters:
card- An instance which implemented Card.
-
setCtaOnClickListener
abstract void setCtaOnClickListener(@Nullable() View.OnClickListener ctaClickListener)
You must to set the listener to your CTA button to track taps.
- Parameters:
ctaClickListener- Instance of the View.OnClickListener
-
-
-
-