InstreamAdListener

package com.intowow.sdk.InstreamAd

public static interface InstreamAdListener

This interface is used for InstreamAd to get the result of requesting and ad status

Public methods

void

void

void

void

void

onAdVideoEnd(InStreamAd ad) On video play end

void

onAdVideoStart(InStreamAd ad) On video start to play

void

onRequestContentPause(InStreamAd ad, int adBreakType, int cuePointTime) On request video content stop as ad is ready to start

void

onRequestContentResume(InStreamAd ad, int adRemainTime) On request video content play as ad is ready to stop

void

onCuePointsReady(InStreamAd ad) On cue points for ad is already prepared.

Public methods

onAdClicked

void onAdClicked(InStreamAd ad)

On ad clicked.

Parameters

ad

[InStreamAd][1]: The Ad you loaded.

onAdImpression

void onAdImpression(InStreamAd ad)

On ad impression.

Parameters

ad

[InStreamAd][1]: The Ad you loaded.

onAdMute

void onAdMute(InStreamAd ad)

On ad mute.

Parameters

ad

[InStreamAd][1]: The Ad you loaded.

onAdUnmute

void onAdUnmute(InStreamAd ad)

On ad unmute.

Parameters

ad

[Ad][1]: The Ad you loaded.

onAdError

void onAdError(InStreamAd ad, AdError error)

Load ad fail.

Parameters

ad

[InStreamAd][1]: The Ad you loaded.

error

AdError: The error information.

onAdVideoEnd

void onAdVideoEnd(InStreamAd ad)

On video play end.

Parameters

ad

[InStreamAd][1]: The Ad you loaded.

onAdVideoStart

void onAdVideoStart(InStreamAd ad)

On video start to play.

Parameters

ad

[InStreamAd][1]: The Ad you loaded.

onProgress

void onProgress(InStreamAd ad, long totalDuration, long currentPosition)

On video play in progress.

Parameters

ad

[InStreamAd][1]: The Ad you loaded.

totalDuration

long: Duration of current InStream ad.

currentPosition

long: The video current play position.

onRequestContentPause

void onRequestContentPause(InStreamAd ad, int adBreakType, int cuePointTime)

On request video content stop as ad is ready to start.

Parameters

ad

[InStreamAd][1]: The Ad you loaded.

adBreakType

int: The type of presenting ad break.

cuePointTime

int: The video current play position.

onRequestContentResume

void onRequestContentResume(InStreamAd ad, int adRemainTime)

On request video content play as ad is ready to stop.

Parameters

ad

[InStreamAd][1]: The Ad you loaded.

adRemainTime

int: The remain time for this ad if ad did not reach end.

onCuePointsReady

void onCuePointsReady(InStreamAd ad)

On cue points for ad is already prepared.

Parameters

ad

[InStreamAd][1]: The Ad you loaded.

[1]: ./ad.html

Last updated