Skip to content

VideoLifecycleCallbacks

The VideoLifecycleCallbacks class contains callbacks (actions/callables) invoked during a video's playback lifecycle inside a native ad.

Callbacks

on_video_start / OnVideoStart

Called when the video starts playing.

var on_video_start: Callable
public Action OnVideoStart { get; set; }

on_video_play / OnVideoPlay

Called when the video is played/resumed.

var on_video_play: Callable
public Action OnVideoPlay { get; set; }

on_video_pause / OnVideoPause

Called when the video is paused.

var on_video_pause: Callable
public Action OnVideoPause { get; set; }

on_video_end / OnVideoEnd

Called when the video finishes playing.

var on_video_end: Callable
public Action OnVideoEnd { get; set; }

on_video_mute / OnVideoMute

Called when the video is muted or unmuted. Passes true if the video is now muted, false otherwise.

var on_video_mute: Callable # func(is_muted: bool)
public Action<bool> OnVideoMute { get; set; }