Class VmapLoader

com.yandex.mobile.ads.video

public class VmapLoader

This class contains VMAP loading controls.

Nested Classes

Constructors

VmapLoader(@NonNull final Context context)

Creates an object of the VmapLoader class.

Methods

void cancelLoading()

Cancels VMAP loading.

void loadVmap(@NonNull final Context context, @NonNull final VmapRequestConfiguration configuration)

Loads VMAP.

void setOnVmapLoadedListener(@Nullable final OnVmapLoadedListener listener)

Specifies an object of the OnVmapLoadedListener class for tracking the progress of VMAP loading.

Constructor Detail

VmapLoader

public VmapLoader (@NonNull final Context context)

Creates an object of the VmapLoader class.

Parameters:
context

An object of the Context system class.

Method Detail

cancelLoading

public void cancelLoading ()

Cancels VMAP loading.

loadVmap

public void loadVmap (@NonNull final Context context, @NonNull final VmapRequestConfiguration configuration)

Loads VMAP.

Parameters:
context

An object of the Context system class.

configuration

Loader configuration (an object of the VmapRequestConfiguration class).

setOnVmapLoadedListener

public void setOnVmapLoadedListener (@Nullable final OnVmapLoadedListener listener)

Specifies an object of the OnVmapLoadedListener class for tracking the progress of VMAP loading.

Parameters:
listener

An object of the OnVmapLoadedListener class that tracks the progress of loading the VMAP object.