IMAEventObserver
@objc public protocol IMAEventObserver
Protocol used to receive IMA events.
-
Callback called when the stream initialized correctly.
Declaration
Swift
@objc optional func onIMAStreamInitialized(_ imaManager: AmpIMAManager, stream: String?)
Parameters
imaManager
The instance of the AMP IMA Manager that sends the event.
stream
THe initialized stream.
-
Callback called when an ad starts.
Declaration
Swift
@objc optional func onIMAAdStarted(_ imaManager: AmpIMAManager, adBreakInfo: IMAAdBreakInfo)
Parameters
imaManager
The instance of the AMP IMA Manager that sends the event.
-
Callback called when an ad ends.
Declaration
Swift
@objc optional func onIMAAdEnded(_ imaManager: AmpIMAManager, adBreakInfo: IMAAdBreakInfo)
Parameters
imaManager
The instance of the AMP IMA Manager that sends the event.
-
Callback called when an ad is requested.
Declaration
Swift
@objc optional func onIMAAdsRequested(_ imaManager: AmpIMAManager)
Parameters
imaManager
The instance of the AMP IMA Manager that sends the event.
-
Callback called when the ima manager experiences an error.
Declaration
Swift
@objc optional func onIMAError(_ imaManager: AmpIMAManager, error: Error)
Parameters
imaManager
The instance of the AMP IMA Manager that sends the event.
error
The error sent.