VIVideoAd

@protocol VIVideoAd <VIAd>

Interface to display native video ad

  • If YES ad will be started automatically when it become ready. @default is NO

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL startsWhenReady;

    Swift

    var startsWhenReady: Bool { get set }
  • Initiate playing ad. Call ‘start’ after receiving ‘VIAdEventLoaded’ event. If ad displaying is in progress all calls of ‘start’ will be ignored. VISDK will create own view and place it above the container provided in ‘createVideoAdFor: inContainer:’ by adding as a subview. Nature of the ad depends on server response for specific placement. Only native video ads are currently supported. Expect ‘VIAdEventStarted’ right after ad has run. All possible playback errors will be passed in ‘adDidReceiveError:’ After ad display finish delegate will be notified with ‘VIAdEventCompleted’

    Declaration

    Objective-C

    - (void)start;

    Swift

    func start()
  • Pause video playback

    Declaration

    Objective-C

    - (void)pause;

    Swift

    func pause()
  • Resume video playback

    Declaration

    Objective-C

    - (void)resume;

    Swift

    func resume()