Class Info |
|---|
public static class InstreamAdLoader.Builder Builder for a roll ad loader. |
Constructor Name |
|---|
Builder(Context context, String adId) Constructs a roll ad loader builder. |
Qualifier and Type | Class Name and Description |
|---|---|
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. |
Constructor |
|---|
public Builder(Context context, String adId) Constructs a roll ad loader builder. |
Parameters
Name | Description |
|---|---|
context | Context. |
adId | Ad unit ID. |
Method |
|---|
public InstreamAdLoader build() Constructs an InstreamAdLoader object. |
Returns
Type | Description |
|---|---|
Roll ad loader. |
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. |
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. |
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. |