Enum Block.Type

com.yandex.mobile.ads.video.models.blocksinfo

public enum Block.Type

The type of a VAST ad block.

Methods

Type(final String type)

Sets the type of an ad block.

Type getByType(final String type)

Returns the type of an ad block.

String toString()

Fields

MIDROLL

Ads are displayed during the playback of the main content.

OVERLAYROLL

Ads are displayed in an additional window.

PAUSEROLL

Ads are displayed when the user clicks the pause button.

POSTROLL

Ads are displayed after the main content is played.

PREROLL

Ads are displayed before the main content is played.

Method Detail

Type

public Type (final String type)

Sets the type of an ad block.

Parameters:
type

The type of an ad block.

getByType

public static Type getByType (final String type)

Returns the type of an ad block.

Parameters:
type

The type of an ad block.

Returns:

The type of an ad block.

toString

public String toString ()

Field Detail

MIDROLL

public MIDROLL =("midroll")

Ads are displayed during the playback of the main content.

OVERLAYROLL

public OVERLAYROLL =("overlayroll")

Ads are displayed in an additional window.

PAUSEROLL

public PAUSEROLL =("pauseroll")

Ads are displayed when the user clicks the pause button.

POSTROLL

public POSTROLL =("postroll")

Ads are displayed after the main content is played.

PREROLL

public PREROLL =("preroll")

Ads are displayed before the main content is played.