-
- All Implemented Interfaces:
public class BannerAdSize.a
-
-
Field Summary
Fields Modifier and Type Field Description public final static BannerAdSize.a
INSTANCE
-
Method Summary
Modifier and Type Method Description final BannerAdSize
fixedSize(Context context, Integer width, Integer height)
Returns fixed banner size. final BannerAdSize
stickySize(Context context, Integer width)
Returns sticky banner size with the given width. final BannerAdSize
inlineSize(Context context, Integer width, Integer maxHeight)
Returns inline adaptive banner size. -
-
Method Detail
-
fixedSize
final BannerAdSize fixedSize(Context context, Integer width, Integer height)
Returns fixed banner size.
- Parameters:
context
- The Context.width
- The width of the ad container in density-independent pixels (dp).height
- The height of the ad container in density-independent pixels (dp).
-
stickySize
final BannerAdSize stickySize(Context context, Integer width)
Returns sticky banner size with the given width.
- Parameters:
context
- The Context.width
- The width of the ad container in density-independent pixels (dp).
-
inlineSize
final BannerAdSize inlineSize(Context context, Integer width, Integer maxHeight)
Returns inline adaptive banner size. Banners with inline sizes stretch to container width and height when possible.
- Parameters:
width
- The width of the ad container in density-independent pixels (dp).maxHeight
- The maximum height of the ad container in density-independent pixels (dp).
-
-
-
-