-
- All Implemented Interfaces:
public final class BannerAdSize extends PrivateBannerAdSizeThe size of a banner ad.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classBannerAdSize.a
-
Method Summary
Modifier and Type Method Description final IntegergetHeight()final IntegergetWidth()final IntegergetHeightInPixels(Context context)Returns the actual height of this BannerAdSize in physical pixels. final IntegergetWidthInPixels(Context context)Returns the actual width of this BannerAdSize in physical pixels. final IntegergetHeight(Context context)Returns the actual height of this BannerAdSize in density-independent pixels (dp). final IntegergetWidth(Context context)Returns the actual width of this BannerAdSize in density-independent pixels (dp). Booleanequals(Object other)IntegerhashCode()StringtoString()-
-
Method Detail
-
getHeightInPixels
final Integer getHeightInPixels(Context context)
Returns the actual height of this BannerAdSize in physical pixels. AdSize created with FULL_HEIGHT will return height of the screen.
- Parameters:
context- Any Context.
-
getWidthInPixels
final Integer getWidthInPixels(Context context)
Returns the actual width of this BannerAdSize in physical pixels. AdSize created with FULL_WIDTH will return width of the screen.
- Parameters:
context- Any Context.
-
getHeight
final Integer getHeight(Context context)
Returns the actual height of this BannerAdSize in density-independent pixels (dp). AdSize created with FULL_HEIGHT will return height of the screen.
- Parameters:
context- Any Context.
-
getWidth
final Integer getWidth(Context context)
Returns the actual width of this BannerAdSize in density-independent pixels (dp). AdSize created with FULL_WIDTH will return width of the screen.
- Parameters:
context- Any Context.
-
-
-
-