com.yandex.mobile.ads.instream
Class InstreamAdLoader
java.lang.Object
com.yandex.mobile.ads.instream.InstreamAdLoader
public class InstreamAdLoader
extends java.lang.Object
This class can be used for loading instream ads
Constructor Summary
Constructor and Description |
---|
InstreamAdLoader(android.content.Context context) |
Method Summary
Modifier and Type | Method and Description |
---|---|
void | loadInstreamAd(android.content.Context context, InstreamAdRequestConfiguration configuration)
Loads instream ad object.
|
void | setInstreamAdLoadListener(InstreamAdLoadListener listener)
Sets an
InstreamAdLoadListener . |
Method Detail
loadInstreamAd
public void loadInstreamAd(@NonNull android.content.Context context, @NonNull InstreamAdRequestConfiguration configuration)
Loads instream ad object. Loader's listener will be notified about loading result.
- Parameters:
context
- Activity contextconfiguration
- Request configuration
setInstreamAdLoadListener
public void setInstreamAdLoadListener(@Nullable InstreamAdLoadListener listener)
Sets an
InstreamAdLoadListener
.- Parameters:
listener
- anInstreamAdLoadListener
. A listener to receive downloadedInstreamAd