AdVideoViewDelegate
@objc(AASDKAdVideoViewDelegate)
public protocol AdVideoViewDelegate
The AdVideoViewDelegate protocol defines delegate methods for receiving AdVideoView behavior changes and events.
-
Video click-through methods. Optional. Called immediately when a touch event is detected over the video view, giving the host application a chance to override the default behavior when a
clickThroughevent occurs.Return
trueif the host application wants to handle itself the targetURL, otherwise returnfalseand by default the targetURL will be opened in the external browser.Declaration
Swift
@objc optional func adVideoView(_ adVideoView: AdVideoView, shouldOverrideVideoClickThrough url: URL) -> BoolParameters
adVideoViewThe
AdVideoViewinstance that received the touch eventurlThe
URLthat was loaded by theAdVideoView -
Called when the application is about to transition to background state as a result of a
clickThroughevent and the targetURL is opened in the external browser.Declaration
Swift
@objc optional func adVideoViewWillLeaveApplication(_ adVideoView: AdVideoView)Parameters
adVideoViewThe
AdVideoViewinstance that triggers the event