public class

AudioAd

extends Object
  co.adcel.ads.rtb.RTBAd
  ↳co.adcel.ads.rtb.AudioAd

Class Overview

Class that implemetns audio advertising API.

Summary

Nested Classes

interface AudioAdEventListener Interface of the event listener for Audio advertising

Public Methods

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 Methods

public AudioAd(Context context, String key)

constructor

Parameters

context The current Context
key AdCel sdk key

public void setAudioAdEventListener(AudioAdEventListener audioAdEventListener)

Sets the event listener

Parameters

audioAdEventListener The event listener interface implementation

public void play()

Plays the audio advertising

public boolean isPlaying()

Returns

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()

Returns

true if the audio advertising is skippable of false

public void skip()

Skip the audio advertising