VIAdDelegate

@protocol VIAdDelegate <NSObject>

Callbacks on video display events

  • Notifies about any error occured during loading and displaying ad

    Declaration

    Objective-C

    - (void)adDidReceiveError:(nonnull NSError *)error;

    Swift

    optional func adDidReceiveError(_ error: Error)

    Parameters

    error

    with domain ‘VISDKErrorDomain’

  • Notifies delegate about change of current state in ad lifecycle

    Declaration

    Objective-C

    - (void)adDidReceiveEvent:(nonnull VIAdEvent *)event;

    Swift

    optional func adDidReceive(_ event: VIAdEvent)

    Parameters

    event

    see event.type enum for description