public interface

AppLovinNativeAdPrecacheListener

com.applovin.nativeAds.AppLovinNativeAdPrecacheListener

Class Overview

Defines a listener which will be notified when native ad resources are pre-cached.

Summary

Public Methods
abstract void onNativeAdImagePrecachingFailed(AppLovinNativeAd ad, int errorCode)
Invoked if pre-caching image resources fails.
abstract void onNativeAdImagesPrecached(AppLovinNativeAd ad)
Invoked when image resources have been successfully pre-cached in a slot.
abstract void onNativeAdVideoPrecachingFailed(AppLovinNativeAd ad, int errorCode)
Invoked if pre-caching video resources fails.
abstract void onNativeAdVideoPreceached(AppLovinNativeAd ad)
Invoked when image resources have been successfully pre-cached in a slot.

Public Methods

public abstract void onNativeAdImagePrecachingFailed (AppLovinNativeAd ad, int errorCode)

Invoked if pre-caching image resources fails.

Parameters
errorCode Error code describing the failed pre-caching attempt. Likely corresponds to a constant in AppLovinErrorCodes.

public abstract void onNativeAdImagesPrecached (AppLovinNativeAd ad)

Invoked when image resources have been successfully pre-cached in a slot. After this point, any resource URL getters, such as getImageUrl(), will return local filesystem URLs.

public abstract void onNativeAdVideoPrecachingFailed (AppLovinNativeAd ad, int errorCode)

Invoked if pre-caching video resources fails.

Parameters
errorCode Error code describing the failed pre-caching attempt. Likely corresponds to a constant in AppLovinErrorCodes.

public abstract void onNativeAdVideoPreceached (AppLovinNativeAd ad)

Invoked when image resources have been successfully pre-cached in a slot. After this point, getVideoUrl() ()} will return a local filesystem URL.