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 Classes
    Modifier and Type
    Interface
    Description
    static class 
    The class with data for implementer of PromoCardView
  • Method Summary

    Modifier and Type
    Method
    Description
     
    android.view.View
     
    void
    Sets Card instance with all required fields for PromoCard.
    void
    setCtaOnClickListener(android.view.View.OnClickListener ctaClickListener)
    You must to set the listener to your CTA button to track taps.
  • Method Details

    • setCard

      void setCard(PromoCardView.Card card)
      Sets Card instance with all required fields for PromoCard.
      Parameters:
      card - An instance which implemented Card.
    • 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 the View.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