Interface PromoCardView

  • All Implemented Interfaces:

    
    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 Class Description
      public abstract class PromoCardView.Card

      The class with data for implementer of PromoCardView

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract MediaAdView getMediaAdView()
      abstract View getView()
      abstract void setCard(@NonNull() PromoCardView.Card card) Sets Card instance with all required fields for PromoCard.
      abstract void setCtaOnClickListener(@Nullable() View.OnClickListener ctaClickListener) You must to set the listener to your CTA button to track taps.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • 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