public static final class MyTargetView.AdSize
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static MyTargetView.AdSize |
ADSIZE_300x250 |
static MyTargetView.AdSize |
ADSIZE_320x50 |
static MyTargetView.AdSize |
ADSIZE_728x90 |
static int |
BANNER_300x250 |
static int |
BANNER_320x50 |
static int |
BANNER_728x90 |
static int |
BANNER_ADAPTIVE |
| Modifier and Type | Method and Description |
|---|---|
static MyTargetView.AdSize |
getAdSizeForCurrentOrientation(android.content.Context context)
Used to return adaptive ad size.
|
static MyTargetView.AdSize |
getAdSizeForCurrentOrientation(int width,
android.content.Context context)
Used to return adaptive ad size.
|
static MyTargetView.AdSize |
getAdSizeForCurrentOrientation(int width,
int maxHeight,
android.content.Context context)
Used to return adaptive ad size.
|
int |
getHeight() |
int |
getHeightPixels() |
int |
getType() |
int |
getWidth() |
int |
getWidthPixels() |
public static final int BANNER_320x50
public static final int BANNER_300x250
public static final int BANNER_728x90
public static final int BANNER_ADAPTIVE
public static final MyTargetView.AdSize ADSIZE_320x50
public static final MyTargetView.AdSize ADSIZE_300x250
public static final MyTargetView.AdSize ADSIZE_728x90
@NonNull public static MyTargetView.AdSize getAdSizeForCurrentOrientation(int width, int maxHeight, @NonNull android.content.Context context)
width - fixed width of a bannermaxHeight - maximum height of a bannercontext - app context@NonNull public static MyTargetView.AdSize getAdSizeForCurrentOrientation(int width, @NonNull android.content.Context context)
width - fixed width of a bannercontext - app context@NonNull public static MyTargetView.AdSize getAdSizeForCurrentOrientation(@NonNull android.content.Context context)
context - app contextpublic int getWidth()
public int getHeight()
public int getWidthPixels()
public int getHeightPixels()
public int getType()
BANNER_320x50,
BANNER_300x250,BANNER_728x90,BANNER_ADAPTIVE