Class AdCompanionsEvent


  • public class AdCompanionsEvent
    extends Event
    Payload that accompanies the onAdCompanions() event.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<AdCompanion> getCompanions()
      A List of with available companion information.
      java.lang.String getTag()
      The URL of the ad tag that is currently playing.
      • Methods inherited from class com.jwplayer.pub.api.events.Event

        getPlayer
      • Methods inherited from class java.lang.Object

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

      • AdCompanionsEvent

        public AdCompanionsEvent​(@NonNull
                                 JWPlayer player,
                                 @NonNull
                                 java.lang.String tag,
                                 @NonNull
                                 java.util.List<AdCompanion> companions)
    • Method Detail

      • getTag

        @NonNull
        public java.lang.String getTag()
        The URL of the ad tag that is currently playing.
      • getCompanions

        @NonNull
        public java.util.List<AdCompanion> getCompanions()
        A List of with available companion information.