VIInlineMediator

@interface VIInlineMediator : VIMediator

/**
 If YES ad will be started automatically when it become ready.
 @default is NO
 */
@property (nonatomic, assign) BOOL startsWhenReady;

/**
 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'
 */
- (void)start;

- (void)setContainerView:(nonnull UIView *)containerView;

@end

Undocumented

  • 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()
  • Undocumented

    Declaration

    Objective-C

    - (void)setContainerView:(nonnull UIView *)containerView;

    Swift

    func setContainerView(_ containerView: Any!)