Protocols

The following protocols are available globally.

  • Delegate protocol for SVSAdManager instances.

    Use it if you want more information about the ad break that is being played, about errors or about user interactions.

    See more

    Declaration

    Objective-C

    @protocol SVSAdManagerDelegate <NSObject>

    Swift

    protocol SVSAdManagerDelegate
  • Protocol used to describe the state of a content player.

    Implement this protocol to allow your SVSAdManager instance to know the current state of the content player. The Playhead will allow the SVSAdManager to load and start ads at the right time and to configure the ad player depending on the configuration of the content player.

    Warning

    Every methods of this protocol are required and must be implemented to play ads!
    See more

    Declaration

    Objective-C

    @protocol SVSContentPlayerPlayHead <NSObject>

    Swift

    protocol SVSContentPlayerPlayHead : NSObjectProtocol