-
- All Implemented Interfaces:
public final class BannerAdSize extends PrivateBannerAdSize
The size of a banner ad.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
BannerAdSize.a
-
Method Summary
Modifier and Type Method Description final Integer
getHeight()
final Integer
getWidth()
final Integer
getHeightInPixels(Context context)
Returns the actual height of this BannerAdSize in physical pixels. final Integer
getWidthInPixels(Context context)
Returns the actual width of this BannerAdSize in physical pixels. final Integer
getHeight(Context context)
Returns the actual height of this BannerAdSize in density-independent pixels (dp). final Integer
getWidth(Context context)
Returns the actual width of this BannerAdSize in density-independent pixels (dp). Boolean
equals(Object other)
Integer
hashCode()
String
toString()
-
-
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.
-
-
-
-