public class
extends Object
co.adcel.ads.rtb.RTBAd
↳co.adcel.ads.rtb.AudioAd
Class that implemetns audio advertising API.
interface | AudioAdEventListener | Interface of the event listener for Audio advertising |
public | AudioAd(Context context, String key) | constructor |
public void | setAudioAdEventListener(AudioAdEventListener audioAdEventListener) | Sets the event listener |
public void | play() | Plays the audio advertising |
public boolean | isPlaying() | Check the audio advertising is playing |
public void | pause() | Pause the audio advertising |
public void | resume() | Resume the audio advertising |
public void | rewind() | Rewind the audio advertising |
public boolean | isSkippable() | Check the audio advertising is skippable |
public void | skip() | Skip the audio advertising |
public AudioAd(Context context, String key)
constructor
context | The current Context |
key | AdCel sdk key |
public void setAudioAdEventListener(AudioAdEventListener audioAdEventListener)
Sets the event listener
audioAdEventListener | The event listener interface implementation |
public void play()
Plays the audio advertising
public boolean isPlaying()
true if the audio advertising is playing of false
public void pause()
Pause the audio advertising
public void resume()
Resume the audio advertising
public void rewind()
Rewind the audio advertising
public boolean isSkippable()
true if the audio advertising is skippable of false
public void skip()
Skip the audio advertising