目录

InstreamAdLoader.Builder

Class Info

public static class InstreamAdLoader.Builder

Builder for a roll ad loader.

Public Constructor Summary

Constructor Name

Builder(Context context, String adId)

Constructs a roll ad loader builder.

Public Method Summary

Qualifier and Type

Class Name and Description

InstreamAdLoader

build()

Constructs an InstreamAdLoader object.

InstreamAdLoader.Builder

setInstreamAdLoadListener(InstreamAdLoadListener adLoadListener)

Sets the listener for roll ad loading.

InstreamAdLoader.Builder

setMaxCount(int maxCount)

Sets the maximum number of roll ads.

InstreamAdLoader.Builder

setTotalDuration(int totalDuration)

Sets the maximum total duration of roll ads.

Public Constructors

[h2]Builder

Constructor

public Builder(Context context, String adId)

Constructs a roll ad loader builder.

Parameters

Name

Description

context

Context.

adId

Ad unit ID.

Public Methods

[h2]build

Method

public InstreamAdLoader build()

Constructs an InstreamAdLoader object.

Returns

Type

Description

InstreamAdLoader

Roll ad loader.

[h2]setInstreamAdLoadListener

Method

public InstreamAdLoader.Builder setInstreamAdLoadListener(InstreamAdLoadListener adLoadListener)

Sets the listener for roll ad loading.

Parameters

Name

Description

adLoadListener

Listener for roll ad loading.

Returns

Type

Description

InstreamAdLoader.Builder

An InstreamAdLoader.Builder object.

[h2]setMaxCount

Method

public InstreamAdLoader.Builder setMaxCount(int maxCount)

Sets the maximum number of roll ads.

Parameters

Name

Description

maxCount

Maximum number of roll ads.

Returns

Type

Description

InstreamAdLoader.Builder

An InstreamAdLoader.Builder object.

[h2]setTotalDuration

Method

public InstreamAdLoader.Builder setTotalDuration(int totalDuration)

Sets the maximum total duration of roll ads.

Parameters

Name

Description

totalDuration

Maximum duration of roll ads, in seconds.

Returns

Type

Description

InstreamAdLoader.Builder

An InstreamAdLoader.Builder object.