Protocols

The following protocols are available globally.

  • Protocol for callback object sent to VPKAdHandler

    Declaration

    Objective-C

    @protocol VPKMediaIdentifier
  • Protocol for handling pre-roll video advertising.

    When an object conforming to this protocol is assigned to a VPKPreview or VPKVeepViewer, VPKit video content will be loaded and paused to allow the host app to manage preroll advertising.

    view, controller and completion objects will be returned to facilitate correct handling and display of prerolls.

    When the completion block 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