Class AdTimeEvent

  • All Implemented Interfaces:
    Event

    public class AdTimeEvent
    extends java.lang.Object
    implements Event
    Payload that accompanies the onAdTime() event.
    • Constructor Detail

      • AdTimeEvent

        public AdTimeEvent​(AdSource client,
                           java.lang.String creativeType,
                           double duration,
                           double position,
                           int sequence,
                           java.lang.String tag)
    • Method Detail

      • getClient

        @NonNull
        public AdSource getClient()
        Returns:
        The client that is currently being used.
      • getCreativeType

        @Nullable
        public java.lang.String getCreativeType()
        Returns:
        The type of advertising creative.
      • getDuration

        public double getDuration()
        Returns:
        The total duration of the ad creative.
      • getPosition

        public double getPosition()
        Returns:
        The current playback position in the ad creative.
      • getSequence

        public int getSequence()
        Returns:
        Returns the sequence number the ad is a part of.
      • getTag

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