Class AdPlayEvent


  • public class AdPlayEvent
    extends Event
    Payload that accompanies the onAdPlay() event.
    • Method Detail

      • getCreativeType

        @Nullable
        public java.lang.String getCreativeType()
        Returns:
        VAST-only The MIME type of the current media file specified in the VAST XML.
      • getNewState

        @NonNull
        public PlayerState getNewState()
        Returns:
        The new state of the player.
      • getOldState

        @NonNull
        public PlayerState getOldState()
        Returns:
        The state of the player prior to ad playback.
      • getTag

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

        @NonNull
        public AdPlayReason getAdPlayReason()
        Returns:
        The reason adPlay occurs.