Class AdBreak

java.lang.Object
com.jwplayer.pub.api.media.ads.AdBreak
All Implemented Interfaces:
android.os.Parcelable

public class AdBreak extends Object implements android.os.Parcelable
An ad break.
  • Field Details

    • CREATOR

      public static final android.os.Parcelable.Creator<AdBreak> CREATOR
  • Method Details

    • getTag

      public List<String> getTag()
      Returns:
      The ad tags that are called during the configured ad break.
    • getOffset

      @NonNull public String getOffset()
      Returns:
      When to play the configured ad tag.
    • getSkipOffset

      @Nullable public Integer getSkipOffset()
      Returns:
      When we enable an ad skip
    • getAdType

      @NonNull public AdType getAdType()
      Returns:
      The ad type -- LINEAR or NONLINEAR.
    • getCustomParams

      @Nullable public Map<String,String> getCustomParams()
      Returns:
      The custom parameters for this ad break.
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object