Protocols
The following protocols are available globally.
-
Protocol for callback object sent to
VPKAdHandlerSee
VPKAdHandlerDeclaration
Objective-C
@protocol VPKMediaIdentifier -
Protocol for handling pre-roll video advertising.
When an object conforming to this protocol is assigned to a
VPKPrevieworVPKVeepViewer, VPKit video content will be loaded and paused to allow the host app to manage preroll advertising.view,controllerandcompletionobjects will be returned to facilitate correct handling and display of prerolls.When the
completionblock is called, control will return to the SDK to play the requested video content.Designed for GoogleAds Interactive Media Ads requirements.
Declaration
Objective-C
@protocol VPKAdHandler -
Undocumented
Declaration
Objective-C
@protocol VPKPreviewDelegate <NSObject> - (void)vpkPreviewTouched:(nonnull VPKPreview*)preview image:(nonnull VPKImage*)image; @end -
Undocumented
Declaration
Objective-C
@protocol VPKPreviewPassThroughDelegate <NSObject> @optional /** tap detected and ignored by VPKPreview. */ - (void)vpkPreview:(nonnull VPKPreview*)preview passedThroughTap:(nonnull UITapGestureRecognizer*)tapGestureRecognizer; /** tap detected and handled by VPKPreview. */ - (void)vpkPreview:(nonnull VPKPreview*)preview handledTap:(nonnull UITapGestureRecognizer*)tapGestureRecognizer; @end -
Undocumented
Declaration
Objective-C
@protocol VPKVeepViewerDelegate <NSObject> @optional /** When either of these optional delegate methods are implemented, they will have to manage dismissing of the `viewer`. */ - (void)veepViewer:(nonnull VPKVeepViewer*)viewer didFinishViewingWithInfo:(nullable NSDictionary*)info; - (void)veepViewerDidCancel:(nonnull VPKVeepViewer*)viewer; @end
View on GitHub
Protocols Reference