目录

InstreamAd

Class Info

public abstract class InstreamAd

贴片广告。

Public Method Summary

Qualifier and Type

Class Name and Description

abstract String

getAdSource()

获取广告来源。

abstract String

getCallToAction()

获取按钮显示的动作说明。

abstract long

getDuration()

获取贴片广告展示时长。

abstract String

getWhyThisAd()

获取为什么显示此广告跳转链接。

abstract String

getAdSign()

标识本任务是否是广告。

abstract boolean

isClicked()

广告是否被点击过。

abstract boolean

isExpired()

广告是否过期。

abstract boolean

isImageAd()

广告是否是图片广告。

abstract boolean

isShown()

广告是否展示过。

abstract boolean

isVideoAd()

广告是否是视频广告。

Public Methods

[h2]getAdSource

Method

public abstract String getAdSource()

获取广告来源。

Returns

Type

Description

String

广告来源。

[h2]getCallToAction

Method

public abstract String getCallToAction()

获取按钮显示的动作说明。

Returns

Type

Description

String

点击跳转动作说明。

[h2]getDuration

Method

public abstract long getDuration()

获取贴片广告展示时长。

Returns

Type

Description

long

贴片展示时长,单位:毫秒。

[h2]getWhyThisAd

Method

public abstract String getWhyThisAd()

获取“为什么显示此广告”跳转链接。

Returns

Type

Description

String

“为什么显示此广告”跳转链接。

[h2]getAdSign

Method

public abstract String getAdSign()

标识本任务是否为广告。

Returns

Type

Description

String

本任务的标识:

  • 0:非广告
  • 1:广告

默认值为1。

[h2]isClicked

Method

public abstract boolean isClicked()

广告是否被点击过。

Returns

Type

Description

boolean

  • true表示广告已被点击过。
  • false表示广告未被点击过。

[h2]isExpired

Method

public abstract boolean isExpired()

广告是否过期。

Returns

Type

Description

boolean

  • true表示广告已过期。
  • false表示广告未过期。

[h2]isImageAd

Method

public abstract boolean isImageAd()

广告是否是图片广告。

Returns

Type

Description

boolean

  • true表示是图片广告。
  • false表示不是图片广告。

[h2]isShown

Method

public abstract boolean isShown()

广告是否展示过。

Returns

Type

Description

boolean

  • true表示广告展示过。
  • false表示广告未展示过。

[h2]isVideoAd

Method

public abstract boolean isVideoAd()

广告是否是视频广告

Returns

Type

Description

boolean

  • true表示此广告是视频广告。
  • false表示此广告不是视频广告。