PKAdInfo

@objc
public class PKAdInfo : NSObject

PKAdInfo represents ad information.

  • Undocumented

    Declaration

    Swift

    @objc
    public var duration: TimeInterval
  • Undocumented

    Declaration

    Swift

    @objc
    public var title: String
  • The position of the pod in the content in seconds. Pre-roll returns 0, post-roll returns -1 and mid-rolls return the scheduled time of the pod.

    Declaration

    Swift

    @objc
    public var timeOffset: TimeInterval
  • Undocumented

    Declaration

    Swift

    @objc
    public var adDescription: String
  • Undocumented

    Declaration

    Swift

    @objc
    public var isSkippable: Bool
  • Undocumented

    Declaration

    Swift

    @objc
    public var contentType: String
  • Undocumented

    Declaration

    Swift

    @objc
    public var adId: String
  • The source ad server information included in the ad response.

    Declaration

    Swift

    @objc
    public var adSystem: String
  • Undocumented

    Declaration

    Swift

    @objc
    public var height: Int
  • Undocumented

    Declaration

    Swift

    @objc
    public var width: Int
  • Total number of ads in the pod this ad belongs to. Will be 1 for standalone ads.

    Declaration

    Swift

    @objc
    public var totalAds: Int
  • The position of this ad within an ad pod. Will be 1 for standalone ads.

    Declaration

    Swift

    @objc
    public var adPosition: Int
  • Undocumented

    Declaration

    Swift

    @objc
    public var isBumper: Bool
  • Undocumented

    Declaration

    Swift

    @objc
    public var podIndex: Int
  • returns the position type of the ad (pre, mid, post)

    Declaration

    Swift

    @objc
    public var positionType: AdPositionType { get }
  • Undocumented

    Declaration

    Swift

    @objc
    public init(adDescription: String,
         adDuration: TimeInterval,
         title: String,
         isSkippable: Bool,
         contentType: String,
         adId: String,
         adSystem: String,
         height: Int,
         width: Int,
         totalAds: Int,
         adPosition: Int,
         timeOffset: TimeInterval,
         isBumper: Bool,
         podIndex: Int)