Protocols
The following protocols are available globally.
-
The
See moreAdAssetprovides support during asset downloading / caching.Declaration
Swift
@objc(AASDKAdAsset) public protocol AdAsset -
The
See moreAdDataprotocol.Declaration
Swift
@objc(AASDKAdData) public protocol AdData -
The
See moreEventprotocol describes basic data for an event.Declaration
Swift
@objc(AASDKEvent) public protocol Event : NSObjectProtocol -
The
See moreAdInterstitialEventMonitorinterface provides native support while playing ads fromAdManagerwhen paired with the insterstitial player provided by an instance ofAVPlayerInterstitialEventMonitororAVPlayerInterstitialEventControlleravailable from iOS 15+. It is designed to add interoperability between theAdManagerit is set on and the nativeAVPlayerInterstitialEventControllerfor scheduling and monitoring HLS interstitial events. Read more aboutAVPlayerInterstitialEventControllerat https://developer.apple.com/documentation/avfoundation/avplayerinterstitialeventcontrollerDeclaration
Swift
@objc(AASDKAdInterstitialEventMonitor) public protocol AdInterstitialEventMonitor -
@protocol
The
See moreAdManagerDelegateprotocol defines the methods used to retrieve information about ad playback (impression, quartiles, etc).Declaration
Swift
@objc(AASDKAdManagerDelegate) public protocol AdManagerDelegate -
@protocol
The
See moreAdManagerDatasourceprotocol defines the methods used to provide the SDK with various data.Declaration
Swift
@objc(AASDKAdManagerDatasource) public protocol AdManagerDatasource -
@protocol
The
See moreAdManagerInterstitialEventDatasourceprotocol defines the methods used to provide AdswizzSDK with various data during a livestream ad replacement.Declaration
Swift
@objc(AASDKAdManagerInterstitialEventDatasource) public protocol AdManagerInterstitialEventDatasource -
The
See moreAdManagerprovides support while playing the ads.Declaration
Swift
@objc(AASDKAdManager) public protocol AdManager -
Protocol for a media player to conform to.
See moreDeclaration
Swift
@objc(AASDKMediaPlayerState) public protocol MediaPlayerState : NSObjectProtocol -
The
See moreAdMacroProviderprotocol encapsulates values for various VAST macros that cannot be automatically computed byAdswizzSDK. Pass anAdMacroProviderimplementation suitable to your integration scenario inAdRequestandAdManager. The values will then be used by the internal macro replacer into their coresspondent pixel tracking URLs and/or VAST request URIs.Declaration
Swift
@objc(AASDKAdMacroProvider) public protocol AdMacroProvider -
See moreCompanionprotocol.Declaration
Swift
@objc(AASDKCompanion) public protocol Companion : NSObjectProtocol -
The
See moreMediaFilepublic protocol.Declaration
Swift
@objc(AASDKMediaFile) public protocol MediaFile -
VAST Extension.
See moreDeclaration
Swift
@objc(AASDKVastExtension) public protocol VastExtension : NSObjectProtocol -
VAST AdParameters.
See moreDeclaration
Swift
@objc(AASDKVastAdParameters) public protocol VastAdParameters : NSObjectProtocol -
VAST CreativeExtension.
See moreDeclaration
Swift
@objc(AASDKVastCreativeExtension) public protocol VastCreativeExtension : NSObjectProtocol -
VAST Pricing.
See moreDeclaration
Swift
@objc(AASDKVastPricing) public protocol VastPricing : NSObjectProtocol -
VAST Advertiser.
See moreDeclaration
Swift
@objc(AASDKVastAdvertiser) public protocol VastAdvertiser : NSObjectProtocol -
PALManagerProtocol public protocol to interact with Google’s PAL SDK
See moreDeclaration
Swift
@objc(AASDKPALManagerProtocol) public protocol PALManagerProtocol -
The
See moreAdCompanionViewDelegateprotocol defines delegate methods to communicate changes in the lifecycle ofAdCompanionViewinstances.Declaration
Swift
@objc(AASDKAdCompanionViewDelegate) public protocol AdCompanionViewDelegate -
The
See moreAdVideoViewDelegateprotocol defines delegate methods for receivingAdVideoViewbehavior changes and events.Declaration
Swift
@objc(AASDKAdVideoViewDelegate) public protocol AdVideoViewDelegate -
The
See moreAdPodcastManagerDelegateprotocol defines the methods used to get information about ads and companion banners inserted during podcast playback.Declaration
Swift
@objc(AASDKAdPodcastManagerDelegate) public protocol AdPodcastManagerDelegate -
Defines a metadata item value from the
See moremetadataarray inAdStreamDVRMetadataprotocol.Declaration
Swift
@objc(AASDKAdStreamDVRMetadataValue) public protocol AdStreamDVRMetadataValue -
The
See moreAdStreamDVRMetadataprotocol describes the DVR metadata sent by an AdStreamManager which is playing a stream capable of reconnecting in the past.Declaration
Swift
@objc(AASDKAdStreamDVRMetadata) public protocol AdStreamDVRMetadata -
The
See moreAdStreamManagerDelegateprotocol defines the methods used to retrieve information about ads and companion banners inserted server-side.Declaration
Swift
@objc(AASDKAdStreamManagerDelegate) public protocol AdStreamManagerDelegate -
The
See moreAdPodcastManagerDownloadDelegateprotocol defines the methods used to get information during podcast downloads.Declaration
Swift
@objc(AASDKAdPodcastManagerDownloadDelegate) public protocol AdPodcastManagerDownloadDelegate -
The
See moreAssetDownloadprovides support during asset downloading / storage.Declaration
Swift
@objc(AASDKDownloadableAsset) public protocol DownloadableAsset -
The tracking permission controller delegate informs about status changes.
See moreDeclaration
Swift
@objc(AASDKTrackingPermissionControllerDelegate) public protocol TrackingPermissionControllerDelegate -
The
See moreWatchSessionDelegatedelegate informs your app when the SDK delivers messages to the companion app.Declaration
Swift
@objc(AASDKWatchSessionDelegate) public protocol WatchSessionDelegate -
The
See moreWatchSessionprotocol defines the connection between your app and the SDK.Declaration
Swift
@objc(AASDKWatchSession) public protocol WatchSession -
@protocol
The
See moreInteractiveAdManagerDelegateprotocol defines the methods used to retrieve information about interactive ads.Declaration
Swift
@objc(AASDKInteractiveAdManagerDelegate) public protocol InteractiveAdManagerDelegate -
The
See moreAdswizzSDKdelegate protocol.Declaration
Swift
@objc(AASDKAdswizzSDKDelegate) public protocol AdswizzSDKDelegate -
Write a custom destination for the logger. The default destination is
See moreNSLog.Declaration
Swift
@objc(AASDKAdLoggerDestination) public protocol AdLoggerDestination -
The
See moreAnalyticsEventprotocol defines all properties for an event.Declaration
Swift
@objc(AASDKAnalyticsEvent) public protocol AnalyticsEvent -
Analytics interface to customize
See moreAnalyticsEvententries.Declaration
Swift
@objc(AASDKAnalyticsCustomData) public protocol AnalyticsCustomData -
The
See moreAnalyticsCollectingprotocol defines an interface for collectingAdswizzSDKanalytics data. All events will be received on a serial background queue. Note that theAnalyticsConnectorclass conforms toAnalyticsCollecting.Declaration
Swift
@objc(AASDKAnalyticsCollecting) public protocol AnalyticsCollecting -
The
See moreAnalyticsCollectorprotocol defines the interface forAdswizzSDKto be able to add or remove instances of objects that conform to theAnalyticsConnectorprotocol.Declaration
Swift
@objc(AASDKAnalyticsCollector) public protocol AnalyticsCollector -
AnalyticsConnectorFrom AdswizzSDKCoreAnalyticsConnectorinheritsAnalyticsCollectingprotocol.Declaration
Swift
@objc(AASDKAnalyticsConnector) public protocol AnalyticsConnector : AnalyticsCollecting
Protocols Reference