JWAdDelegate

@objc
public protocol JWAdDelegate

A delegate which will receive ad events.

  • Reports when an event is emitted by the player.

    Declaration

    Swift

    func jwplayer(_ player: JWPlayer, adEvent event: JWAdEvent)

    Parameters

    player

    The player playing the ad.

    event

    A description of the ad, including the type of event being reported.