PersistentListener

abstract class PersistentListener

Listener for loading events related to persistent ads.

Functions

Link copied to clipboard
open fun onDownloadProgress(@NonNull identifier: String, @NonNull containerDir: File, downloadedBytes: Long, expectedBytes: Long)
Called when a download has progressed.
Link copied to clipboard
open fun onDownloadStarted(@NonNull identifier: String, @NonNull containerDir: File)
Called when an ad starts downloading, onLocalCopyStarted won't be called.
Link copied to clipboard
open fun onLoaded(@NonNull identifier: String, @NonNull containerDir: File)
Called when an ad has finished loading.
Link copied to clipboard
open fun onLoadFailed(@NonNull identifier: String, @NonNull containerDir: File)
Called when there's an error loading an ad.
Link copied to clipboard
open fun onLoadStarted(@NonNull identifier: String, @NonNull containerDir: File)
Called when an ad starts loading.
Link copied to clipboard
open fun onLocalCopyStarted(@NonNull identifier: String, @NonNull containerDir: File)
Called when an ad is copied locally, onDownloadStarted won't be called (unless an error happens during local copy).