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
clickThrough
event occurs.Return
true
if the host application wants to handle itself the targetURL, otherwise returnfalse
and by default the targetURL will be opened in the external browser.Declaration
Swift
@objc optional func adVideoView(_ adVideoView: AdVideoView, shouldOverrideVideoClickThrough url: URL) -> Bool
Parameters
adVideoView
The
AdVideoView
instance that received the touch eventurl
The
URL
that was loaded by theAdVideoView
-
Called when the application is about to transition to background state as a result of a
clickThrough
event and the targetURL is opened in the external browser.Declaration
Swift
@objc optional func adVideoViewWillLeaveApplication(_ adVideoView: AdVideoView)
Parameters
adVideoView
The
AdVideoView
instance that triggers the event