目录

AdSize

Class Info

public class AdSize extends Object

广告尺寸。

Public Constructor Summary

Constructor Name

AdSize(int width, int height)

广告尺寸的构造函数。

Public Method Summary

Qualifier and Type

Method Name and Description

int

getHeight()

获取广告高度。

int

getWidth()

获取广告宽度。

Public Constructors

[h2]AdSize

Constructor

public AdSize(int width, int height)

广告尺寸的构造方法,用来创建一个新的广告尺寸对象。

Parameters

Name

Description

width

广告宽度,单位:dp。

height

广告高度,单位:dp。

Public Methods

[h2]getHeight

Method

public int getHeight()

获取广告高度。

Returns

Type

Description

int

广告高度,单位:dp。

[h2]getWidth

Method

public int getWidth()

获取广告宽度。

Returns

Type

Description

int

广告宽度,单位:dp。