AdVideoView
@objc(AASDKAdVideoView)
@MainActor
public class AdVideoView : UIViewextension AdVideoView: UIGestureRecognizerDelegateThe video view to render ads. It makes use of an internal AVPlayerLayer to be able to render video content on its own.
Subclassing notes: AdVideoView can be subclassed; however, you must ensure it does not alter the base behaviour and presentation
- 
                  
                  An optional delegate object that receives state change notifications from an AdVideoViewinstance. Typically, this is anUIViewControllerinstance. For best practice, this reference should be set to nil before deallocating the delegate.DeclarationSwift @objc @IBOutlet @MainActor public weak var delegate: AdVideoViewDelegate?
- 
                  
                  The video aspect when used with the internal player layer. The default is aspectFit. Note that, if the internal player is not used, this property has no effect and you are responsible for managing the render aspect.DeclarationSwift @objc @IBInspectable @MainActor public var aspect: AdVideoAspect { get set }
- 
                  
                  Returns the click-through URL for this video view if the loaded ad provides it DeclarationSwift @objc @MainActor public var clickThrough: URL? { get }
- 
                  
                  The video state for viewability purposes. See the AdVideoStateenum for possible values. YourAdVideoViewinstance will have to report state changes according to your specific usage. E.g whenever your video view transitions to one of theAdVideoStateoptions, you should update the state here.Also note that, when your app transitions to the background, the SDK will conveniently set it to the minimizedstate and restore it to the previously known value when the app becomes active again.DeclarationSwift @objc @MainActor public var state: AdVideoState { get set }
- 
                  
                  UIViewInitializer. Overridden byAdswizzSDK.DeclarationSwift @MainActor public override init(frame: CGRect)
- 
                  
                  UIViewInitializer. Overridden byAdswizzSDK.DeclarationSwift @MainActor public required init?(coder: NSCoder)
- 
                  
                  UIViewInitializer. Overridden byAdswizzSDK.DeclarationSwift @MainActor public override func awakeFromNib()
- 
                  
                  Call this method when you manually trigger the clickThrough URL (e.g you present a custom button in your interface and, when tapped, it will fire clickThrough as the target URL). This way, you inform the AdswizzSDK that the associated clickTrackings should also be fired for third-party measurement and reporting. Note that you may want to implement adVideoView(_ adVideoView: AdVideoView, shouldOverrideVideoClickThrough url: URL) -> Booland returntrueto let the AdswizzSDK know that you’re responsible for handling the clickThrough.DeclarationSwift @objc @MainActor public func didHandleClickThrough()
- 
                  
                  Registers a view that overlays or obstructs this container as “friendly” for viewability measurement purposes. See the Open Measurement in AdswizzSDK for guidance on what you are and what you are not allowed to register. DeclarationSwift @objc @MainActor public func register(_ friendlyObstruction: AdVideoFriendlyObstruction)ParametersfriendlyObstructionan obstruction to be marked as “friendly” until unregistered. 
- 
                  
                  Unregisters all previously registered friendly obstructions. DeclarationSwift @objc @MainActor public func unregisterAllFriendlyObstructions()
- 
                  
                  UIGestureRecognizerDelegateconformance. Implemented byAdswizzSDK.DeclarationSwift @MainActor public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool
- 
                  
                  UIGestureRecognizerDelegateconformance. Implemented byAdswizzSDK.DeclarationSwift @MainActor public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRequireFailureOf otherGestureRecognizer: UIGestureRecognizer) -> Bool
