T
- the type of an Ad to handle.public interface AdPlayer<T>
Modifier and Type | Interface and Description |
---|---|
static class |
AdPlayer.AdPlayerSettings |
static interface |
AdPlayer.Listener<T>
Represents the callbacks from an
AdPlayer . |
Modifier and Type | Method and Description |
---|---|
void |
addListener(AdPlayer.Listener<T> listener)
Adds a
AdPlayer.Listener . |
void |
loadAd(T ad)
Loads an ad of type T.
|
void |
pauseAd()
Pauses an ad.
|
void |
playAd()
Plays an ad.
|
void |
release()
Releases the
AdPlayer . |
void |
removeListener(AdPlayer.Listener<T> listener)
Removes a
AdPlayer.Listener . |
void |
seekTo(long position)
Seeks to the specified position.
|
void |
skipAd()
Skips the current ad.
|
void addListener(@NonNull AdPlayer.Listener<T> listener)
AdPlayer.Listener
.listener
- listener to be added.void removeListener(@NonNull AdPlayer.Listener<T> listener)
AdPlayer.Listener
.listener
- listener to be removed.void loadAd(@NonNull T ad)
ad
- ad to be loaded.void playAd()
void pauseAd()
void seekTo(long position)
void release()
AdPlayer
.void skipAd()