目录

CLASS info
public class NativeAdConfiguration extends Object
Ad configuration.

Nested Class Summary

TypeNameDesc
ClassNativeAdConfiguration.BuilderConstructor of NativeAdConfiguration.
@interfaceNativeAdConfiguration.ChoicesPositionChoice icon position constants.
@interfaceNativeAdConfiguration.DirectionDirection constant.

Public Method Summary

Return typeMethod name
AdSize

getAdSize()

Obtains the requested ad size.

int

getChoicesPosition()

Obtains the position of an ad choice icon.

int

getMediaDirection()

Obtains the direction of an ad image.

int

getMediaAspect()

Obtains the aspect ratio of an ad image.

VideoConfiguration

getVideoConfiguration()

Obtains video configuration information.

boolean

isRequestMultiImages()

Checks whether multiple ad images are requested.

boolean

isReturnUrlsForImages()

Checks whether the SDK is allowed to download native ad images.

Public Methods

Method
public final AdSize getAdSize()
Obtains the requested ad size.

Return

typedesc
AdSizead size.
Method
public final int getChoicesPosition()
Obtains the position of an ad choice icon.

Return

typedesc
intPosition of an ad choice icon.
Method
public final int getMediaDirection()
Obtains the direction of an ad image.

Return

typedesc
intImage direction.
Method
public final int getMediaAspect()
Obtains the aspect ratio of an ad image.

Return

typedesc
intAspect ratio of an ad image.
Method
public final VideoConfiguration getVideoConfiguration()
Obtains video configuration information.

Return

typedesc
VideoConfigurationVideo configuration information.
Method
public final boolean isRequestMultiImages()
Checks whether multiple ad images are requested.

Return

typedesc
booleanIf multiple ad images are requested, true is returned. Otherwise, false is returned.
Method
public final boolean isReturnUrlsForImages()
Checks whether the SDK is allowed to download native ad images.

Return

typedesc
booleanIf the SDK is allowed to download native ad images, true is returned. Otherwise, false is returned.