AdPreloadType

@objc(THEOplayerAdPreloadType)
public enum AdPreloadType : Int
extension AdPreloadType: Encodable

The type of ad Preload. This indicates in which manner the advertisements will be downloaded in advance.

  • No preloading.

    Declaration

    Swift

    @objc(THEOplayerAdPreloadTypeNONE)
    case NONE = 0
  • Preload midrolls and postrolls.

    Remark

    For Google IMA the preload starts 4 seconds before ad playback.

    Declaration

    Swift

    @objc(THEOplayerAdPreloadTypeMIDROLL_AND_POSTROLL)
    case MIDROLL_AND_POSTROLL = 1
  • The raw value of type String.

    Declaration

    Swift

    public var _rawValue: String { get set }