Class AdSource

  • All Implemented Interfaces:
    android.os.Parcelable

    public final class AdSource
    extends java.lang.Object
    implements android.os.Parcelable
    Class that represents ad source.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<AdSource> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int describeContents()  
      java.lang.String getId()
      Returns ad source identifier.
      java.lang.Boolean isAllowMultipleAds()
      Returns boolean value that indicate whether or not player should honor VAST ad pods or other multiple ad formats in the ad response document.
      java.lang.Boolean isFollowRedirects()
      Boolean value that indicate whether the video player should honor redirects within an ad response.
      void writeToParcel​(android.os.Parcel dest, int flags)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<AdSource> CREATOR
    • Method Detail

      • getId

        @Nullable
        public java.lang.String getId()
        Returns ad source identifier.
        Returns:
        Ad source identifier.
      • isAllowMultipleAds

        @Nullable
        public java.lang.Boolean isAllowMultipleAds()
        Returns boolean value that indicate whether or not player should honor VAST ad pods or other multiple ad formats in the ad response document.
        Returns:
        Boolean value that indicates whether or not player should honor VAST ad pods or other multiple ad formats in the ad response document.
      • isFollowRedirects

        @Nullable
        public java.lang.Boolean isFollowRedirects()
        Boolean value that indicate whether the video player should honor redirects within an ad response.
        Returns:
        true if the video player should honor redirects within an ad response.
      • describeContents

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

        public void writeToParcel​(@NonNull
                                  android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable