AdProperty

package com.intowow.sdk

public class AdProperty

This class can be used to configure the Ad property before you new an ad. For example:

  • For MediaView case :

Map<String, Object> adProps = new HashMap<String, Object>();
adProps.put(AdProperty.AUTO_CONTROL_VOLUME, trueOrFalse);
adProps.put(AdProperty.HIDE_WIFITAG, trueOrFalse);
adProps.put(AdProperty.HIDE_SPEAKER, trueOrFalse);
adProps.put(AdProperty.HIDE_COUNTDOWN, trueOrFalse);
adProps.put(AdProperty.HIDE_AD_ICON, trueOrFalse);
adProps.put(AdProperty.VIDEO_AUTO_REPEAT, trueOrFalse);
adProps.put(AdProperty.SILENT_START, trueOrFalse);
adProps.put(AdProperty.TOUCH_EFFECT, Color.argb(125, 0, 0, 0));


MediaView mediaView = new MediaView(context, adProps);
  • For DisplayAd case :

Map<String, Object> adProps = new HashMap<String, Object>();
adProps.put(AdProperty.VIDEO_AUTO_REPEAT, trueOrFalse);
adProps.put(AdProperty.HIDE_AD_ICON, trueOrFalse);
adProps.put(AdProperty.SILENT_START, trueOrFalse);

DisplayAd mDisplayAd = new DisplayAd(context, placement, adProps);
  • For InstreamAd case:

Map<String, Object> adProps = new HashMap<>();
adProps.put(AdProperty.SILENT_START, trueOrFalse);
adProps.put(AdProperty.HIDE_NON_SKIPPABLE_BUTTON, trueOrFalse);
adProps.put(AdProperty.HIDE_AD_COUNT_VIEW, trueOrFalse);
adProps.put(AdProperty.HIDE_SPEAKER, trueOrFalse);
adProps.put(AdProperty.HIDE_COUNTDOWN, trueOrFalse);

InstreamAd mInstreamAd = new InstreamAd(context, placement, adProps);

Constants

String

AUTO_CONTROL_VOLUME If the native mediaview auto controls the video volume. The default value is false.

String

AUTO_PLAY If the ad auto play or not. The default value is true.

String

HIDE_AD_ICON If the ad needs to hide the AD icon or not. The default value is false.

String

HIDE_COUNTDOWN If the mediaview needs to hide the countdown or not. The default value is false.

String

HIDE_SPEAKER If the mediaview needs to hide the speaker or not. The default value is false.

String

HIDE_WIFITAG If the mediaview needs to hide the wifi tag or not. The default value is false.

String

SILENT_START If the ad needs to auto silent play or not. The default value is true.

String

TOUCH_EFFECT If the mediaview needs to show the touch effect or not. The default effect is none.

String

VIDEO_AUTO_REPEAT If the ad needs to auto repeat or not. The default value is true.

String

HIDE_NON_SKIPPABLE_BUTTON If the ad needs customize skip button by yourself. The default value is false.

String

HIDE_AD_COUNT_VIEW If the ad needs to show the remain ad count view. The default value is false.

(For instreamAd Only)

Constants

AUTO_CONTROL_VOLUME

String AUTO_CONTROL_VOLUME

If the native mediaview auto controls the video volume. The default value is false.

AUTO_PLAY

String AUTO_PLAY

If the ad auto play or not. The default value is true.

HIDE_AD_ICON

String HIDE_AD_ICON

If the ad needs to hide the AD icon or not. The default value is false.

HIDE_COUNTDOWN

String HIDE_COUNTDOWN

If the mediaview needs to hide the countdown or not. The default value is false.

HIDE_SPEAKER

String HIDE_SPEAKER

If the mediaview needs to hide the speaker or not. The default value is false.

HIDE_WIFITAG

String HIDE_WIFITAG

If the mediaview needs to hide the wifi tag or not. The default value is false.

SILENT_START

String SILENT_START

If the ad needs to auto silent play or not. The default value is true.

TOUCH_EFFECT

String TOUCH_EFFECT

If the mediaview needs to show the touch effect or not. The default effect is none.

VIDEO_AUTO_REPEAT

String VIDEO_AUTO_REPEAT

If the ad needs to auto repeat or not. The default value is true.

HIDE_NON_SKIPPABLE_BUTTON

String HIDE_NON_SKIPPABLE_BUTTON

If the ad needs customize skip button by yourself. The default value is false.

HIDE_AD_COUNT_VIEW

String HIDE_AD_COUNT_VIEW

If the ad needs to show the remain ad count view. The default value is false.

HIDE_COUNTDOWN

String HIDE_COUNTDOWN

If the ad needs to hide the count down view. The default value is false.

Last updated