AdType

@objc(THEOplayerAdType)
public class AdType : NSObject, Codable

The type of Ad specifying whether it will interrupt the content or not.

  • Linear advertisements interrupt the video content. They appear before (as pre-roll), after (as post-roll) or during (as mid-roll) the video content.

    Declaration

    Swift

    @objc
    public static let linear: String
  • Non-linear advertisements appear during video content, without disrupting playback.

    Declaration

    Swift

    @objc
    public static let nonlinear: String
  • The type of the advertisement is unknown.

    Declaration

    Swift

    @objc
    public static let unknown: String