目录

InstreamAd

Class Info

public abstract class InstreamAd

Roll ad.

Public Method Summary

Qualifier and Type

Class Name and Description

abstract String

getAdSource()

Obtains the ad source.

abstract String

getCallToAction()

Obtains the text to be displayed on a button.

abstract long

getDuration()

Obtains the duration of a roll ad.

abstract String

getWhyThisAd()

Obtains the redirection link to Why this ad.

abstract String

getAdSign()

Obtains a flag indicating whether a task is an ad task.

abstract boolean

isClicked()

Checks whether an ad has been clicked.

abstract boolean

isExpired()

Checks whether an ad has expired.

abstract boolean

isImageAd()

Checks whether an ad is an image ad.

abstract boolean

isShown()

Checks whether an ad has been displayed.

abstract boolean

isVideoAd()

Checks whether an ad is a video ad.

Public Methods

[h2]getAdSource

Method

public abstract String getAdSource()

Obtains the ad source.

Returns

Type

Description

String

Ad source.

[h2]getCallToAction

Method

public abstract String getCallToAction()

Obtains the text to be displayed on a button.

Returns

Type

Description

String

Text to be displayed on a button.

[h2]getDuration

Method

public abstract long getDuration()

Obtains the duration of a roll ad.

Returns

Type

Description

long

Duration of a roll ad, in milliseconds.

[h2]getWhyThisAd

Method

public abstract String getWhyThisAd()

Obtains the redirection link to Why this ad.

Returns

Type

Description

String

Redirection link to Why this ad.

[h2]getAdSign

Method

public abstract String getAdSign()

Obtains a flag indicating whether a task is an ad task.

Returns

Type

Description

String

Indicates whether a task is an ad task.

  • 0: no
  • 1: yes

The default value is 1.

[h2]isClicked

Method

public abstract boolean isClicked()

Checks whether an ad has been clicked.

Returns

Type

Description

boolean

  • true if an ad has been clicked.
  • false if an ad has not been clicked.

[h2]isExpired

Method

public abstract boolean isExpired()

Checks whether an ad has expired.

Returns

Type

Description

boolean

  • true if an ad has expired.
  • false if an ad has not expired.

[h2]isImageAd

Method

public abstract boolean isImageAd()

Checks whether an ad is an image ad.

Returns

Type

Description

boolean

  • true if an ad is an image ad.
  • false if an ad is not an image ad.

[h2]isShown

Method

public abstract boolean isShown()

Checks whether an ad has been displayed.

Returns

Type

Description

boolean

  • true if an ad has been displayed.
  • false if an ad has not been displayed.

[h2]isVideoAd

Method

public abstract boolean isVideoAd()

Checks whether an ad is a video ad.

Returns

Type

Description

boolean

  • true if an ad is a video ad.
  • false if an ad is not a video ad.