Class VideoAdLoader

com.yandex.mobile.ads.video

public class VideoAdLoader

This class contains controls for loading video ads.

Nested Classes

Constructors

VideoAdLoader(@NonNull final Context context)

Creates an object of the VideoAdLoader class.

Methods

void cancelLoading()

Cancels video ad loading.

void loadAd(@NonNull final Context context, @NonNull final VastRequestConfiguration configuration)

Loads video ads.

void setOnVideoAdLoadedListener(@Nullable final OnVideoAdLoadedListener listener)

Specifies an object of the OnVideoAdLoadedListener class for tracking the progress of video ad loading.

Constructor Detail

VideoAdLoader

public VideoAdLoader (@NonNull final Context context)

Creates an object of the VideoAdLoader class.

Parameters:
context

An object of the Context system class.

Method Detail

cancelLoading

public void cancelLoading ()

Cancels video ad loading.

loadAd

public void loadAd (@NonNull final Context context, @NonNull final VastRequestConfiguration configuration)

Loads video ads.

Parameters:
context

An object of the Context system class.

configuration

Loader configuration (an object of the VastRequestConfiguration class).

setOnVideoAdLoadedListener

public void setOnVideoAdLoadedListener (@Nullable final OnVideoAdLoadedListener listener)

Specifies an object of the OnVideoAdLoadedListener class for tracking the progress of video ad loading.

Parameters:
listener

An object of the OnVideoAdLoadedListener class that tracks the progress of loading the VideoAd object.