init
TypeScriptstatic initPrimaryItemDate(primaryItem: AVPlayerItem, date: globalThis.Date): AVPlayerInterstitialEventSwift declarationconvenience init(primaryItem: AVPlayerItem, date: Date)class · iOS 15.0+ · SDK 27.1
class AVPlayerInterstitialEventstatic initPrimaryItemDate(primaryItem: AVPlayerItem, date: globalThis.Date): AVPlayerInterstitialEventSwift declarationconvenience init(primaryItem: AVPlayerItem, date: Date)static initPrimaryItemTime(primaryItem: AVPlayerItem, time: _CoreMedia_CMTime): AVPlayerInterstitialEventSwift declarationconvenience init(primaryItem: AVPlayerItem, time: CMTime)get alignsResumptionWithPrimarySegmentBoundary(): booleanSwift declarationvar alignsResumptionWithPrimarySegmentBoundary: Bool { get set }set alignsResumptionWithPrimarySegmentBoundary(value: boolean)Swift declarationvar alignsResumptionWithPrimarySegmentBoundary: Bool { get set }get alignsStartWithPrimarySegmentBoundary(): booleanSwift declarationvar alignsStartWithPrimarySegmentBoundary: Bool { get set }set alignsStartWithPrimarySegmentBoundary(value: boolean)Swift declarationvar alignsStartWithPrimarySegmentBoundary: Bool { get set }get assetListResponse(): (NativeMap<unknown, SDKHandle>) | nullSwift declarationvar assetListResponse: [AnyHashable : any Sendable]? { get }get contentMayVary(): booleanSwift declarationvar contentMayVary: Bool { get set }set contentMayVary(value: boolean)Swift declarationvar contentMayVary: Bool { get set }get cue(): AVPlayerInterstitialEvent_CueSwift declarationvar cue: AVPlayerInterstitialEvent.Cue { get set }set cue(value: AVPlayerInterstitialEvent_Cue)Swift declarationvar cue: AVPlayerInterstitialEvent.Cue { get set }get date(): (globalThis.Date) | nullSwift declarationvar date: Date? { get set }set date(value: (globalThis.Date) | null)Swift declarationvar date: Date? { get set }get identifier(): stringSwift declarationvar identifier: String { get set }set identifier(value: string)Swift declarationvar identifier: String { get set }get plannedDuration(): _CoreMedia_CMTimeSwift declarationvar plannedDuration: CMTime { get set }set plannedDuration(value: _CoreMedia_CMTime)Swift declarationvar plannedDuration: CMTime { get set }get playoutLimit(): _CoreMedia_CMTimeSwift declarationvar playoutLimit: CMTime { get set }set playoutLimit(value: _CoreMedia_CMTime)Swift declarationvar playoutLimit: CMTime { get set }get primaryItem(): (AVPlayerItem) | nullSwift declarationweak var primaryItem: AVPlayerItem? { get }get restrictions(): AVPlayerInterstitialEvent_RestrictionsSwift declarationvar restrictions: AVPlayerInterstitialEvent.Restrictions { get set }set restrictions(value: AVPlayerInterstitialEvent_Restrictions)Swift declarationvar restrictions: AVPlayerInterstitialEvent.Restrictions { get set }get resumptionOffset(): _CoreMedia_CMTimeSwift declarationvar resumptionOffset: CMTime { get set }set resumptionOffset(value: _CoreMedia_CMTime)Swift declarationvar resumptionOffset: CMTime { get set }get scheduleIdentifier(): (string) | nullSwift declarationvar scheduleIdentifier: String? { get }get skipControlLocalizedLabelBundleKey(): (string) | nullSwift declarationvar skipControlLocalizedLabelBundleKey: String? { get set }set skipControlLocalizedLabelBundleKey(value: (string) | null)Swift declarationvar skipControlLocalizedLabelBundleKey: String? { get set }get skipControlTimeRange(): _CoreMedia_CMTimeRangeSwift declarationvar skipControlTimeRange: CMTimeRange { get set }set skipControlTimeRange(value: _CoreMedia_CMTimeRange)Swift declarationvar skipControlTimeRange: CMTimeRange { get set }get supplementsPrimaryContent(): booleanSwift declarationvar supplementsPrimaryContent: Bool { get set }set supplementsPrimaryContent(value: boolean)Swift declarationvar supplementsPrimaryContent: Bool { get set }get templateItems(): Array<AVPlayerItem>Swift declarationvar templateItems: [AVPlayerItem] { get set }set templateItems(value: Array<AVPlayerItem>)Swift declarationvar templateItems: [AVPlayerItem] { get set }get time(): _CoreMedia_CMTimeSwift declarationvar time: CMTime { get set }set time(value: _CoreMedia_CMTime)Swift declarationvar time: CMTime { get set }get timelineOccupancy(): AVPlayerInterstitialEvent_TimelineOccupancySwift declarationvar timelineOccupancy: AVPlayerInterstitialEvent.TimelineOccupancy { get set }set timelineOccupancy(value: AVPlayerInterstitialEvent_TimelineOccupancy)Swift declarationvar timelineOccupancy: AVPlayerInterstitialEvent.TimelineOccupancy { get set }get userDefinedAttributes(): NativeMap<unknown, SDKHandle>Swift declarationvar userDefinedAttributes: [AnyHashable : any Sendable] { get set }set userDefinedAttributes(value: NativeMap<unknown, SDKHandle>)Swift declarationvar userDefinedAttributes: [AnyHashable : any Sendable] { get set }get willPlayOnce(): booleanSwift declarationvar willPlayOnce: Bool { get set }set willPlayOnce(value: boolean)Swift declarationvar willPlayOnce: Bool { get set }static initPrimaryItemIdentifierDateTemplateItemsRestrictionsResumptionOffsetPlayoutLimitUserDefinedAttributes(primaryItem: AVPlayerItem, identifier: (string) | null, date: globalThis.Date, templateItems: Array<AVPlayerItem>, restrictions?: AVPlayerInterstitialEvent_Restrictions, resumptionOffset?: _CoreMedia_CMTime, playoutLimit?: _CoreMedia_CMTime, userDefinedAttributes?: Record<string, unknown>): AVPlayerInterstitialEventSwift declarationconvenience init(primaryItem: AVPlayerItem, identifier: String?, date: Date, templateItems: [AVPlayerItem], restrictions: AVPlayerInterstitialEvent.Restrictions = [], resumptionOffset: CMTime = .indefinite, playoutLimit: CMTime = .invalid, userDefinedAttributes: [String : Any] = [:])AVPlayerInterstitialEvent initializer by date - Parameters: - primaryItem: The AVPlayerItem playing the primary content, against which the interstitial event will be scheduled. The primaryItem must have an AVAsset that provides an intrinsic mapping from its timeline to real-time dates. - identifier: A persistent identifier for the event. - date: The date within the date range of the primary item at which playback of the primary content should be temporarily suspended and the interstitial items played. - templateItems: An array of AVPlayerItems with configurations that will be reproduced for the playback of interstitial content. - restrictions: Indicates restrictions on the use of end user playback controls that are imposed by the event. - resumptionOffset: Specifies the offset in time at which playback of the primary item should resume after interstitial playback has finished. Definite numeric values are supported. The value .indefinite can also be used, in order to specify that the effective resumption time offset should accord with the wallclock time elapsed during interstitial playback. - playoutLimit: Specifies the offset from the beginning of the interstitial at which interstitial playback should end, if the interstitial asset(s) are longer. Pass a positive numeric value, or .invalid to indicate no playout limit. - userDefinedAttributes: Storage for attributes defined by the client or the content vendor. Attribute names should begin with X- for uniformity with server insertion.
static initPrimaryItemIdentifierTimeTemplateItemsRestrictionsResumptionOffsetPlayoutLimitUserDefinedAttributes(primaryItem: AVPlayerItem, identifier: (string) | null, time: _CoreMedia_CMTime, templateItems: Array<AVPlayerItem>, restrictions?: AVPlayerInterstitialEvent_Restrictions, resumptionOffset?: _CoreMedia_CMTime, playoutLimit?: _CoreMedia_CMTime, userDefinedAttributes?: Record<string, unknown>): AVPlayerInterstitialEventSwift declarationconvenience init(primaryItem: AVPlayerItem, identifier: String?, time: CMTime, templateItems: [AVPlayerItem], restrictions: AVPlayerInterstitialEvent.Restrictions = [], resumptionOffset: CMTime = .indefinite, playoutLimit: CMTime = .invalid, userDefinedAttributes: [String : Any] = [:])AVPlayerInterstitialEvent initializer by time - Parameters: - primaryItem: The AVPlayerItem playing the primary content, against which the interstitial event will be scheduled. - identifier: A persistent identifier for the event. - time: The time within the duration of the primary item at which playback of the primary content should be temporarily suspended and the interstitial items played. - templateItems: An array of AVPlayerItems with configurations that will be reproduced for the playback of interstitial content. - restrictions: Indicates restrictions on the use of end user playback controls that are imposed by the event. - resumptionOffset: Specifies the offset in time at which playback of the primary item should resume after interstitial playback has finished. Definite numeric values are supported. The value .indefinite can also be used, in order to specify that the effective resumption time offset should accord with the wallclock time elapsed during interstitial playback. - playoutLimit: Specifies the offset from the beginning of the interstitial at which interstitial playback should end, if the interstitial asset(s) are longer. Pass a positive numeric value, or .invalid to indicate no playout limit. - userDefinedAttributes: Storage for attributes defined by the client or the content vendor. Attribute names should begin with X- for uniformity with server insertion.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
AVPlayerInterstitialEvent.init()
inherited init: cannot prove legal (class declares 4 custom initializers)