public class Util
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Util.Function1<R,T> |
static interface |
Util.ResizeInBannerNativeListener |
| Modifier and Type | Field and Description |
|---|---|
static int |
HTTP_CONNECTION_TIMEOUT |
static int |
HTTP_SOCKET_TIMEOUT |
static int |
NATIVE_AD_VISIBLE_PERIOD_MILLIS |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
convertMapToMoPubKeywords(java.util.Map<java.lang.String,java.lang.String> keywordMap) |
static java.lang.String |
generateInstreamUriForGam(java.lang.String adUnit,
java.util.HashSet<AdSize> sizes,
java.util.Map<java.lang.String,java.lang.String> prebidKeywords)
Generate ad tag url for Google's IMA SDK to fetch ads
|
static void |
loadImage(android.widget.ImageView image,
java.lang.String url) |
static void |
resizeInBannerNative(android.view.ViewGroup adView,
android.view.ViewGroup.LayoutParams params,
Util.ResizeInBannerNativeListener listener)
This method resizes a view that contains prebid in banner native ad to the size you desired
|
public static final int HTTP_CONNECTION_TIMEOUT
public static final int HTTP_SOCKET_TIMEOUT
public static final int NATIVE_AD_VISIBLE_PERIOD_MILLIS
public static void resizeInBannerNative(@NonNull
android.view.ViewGroup adView,
android.view.ViewGroup.LayoutParams params,
@Nullable
Util.ResizeInBannerNativeListener listener)
adView - the adView to be resizedparams - the size to be resized to, note the view group has to be the adView's parent view group typelistener - the listener to be called when resize is done@NonNull public static java.lang.String convertMapToMoPubKeywords(java.util.Map<java.lang.String,java.lang.String> keywordMap)
public static java.lang.String generateInstreamUriForGam(java.lang.String adUnit,
java.util.HashSet<AdSize> sizes,
java.util.Map<java.lang.String,java.lang.String> prebidKeywords)
adUnit - GAM ad unit idsizes - a set of ad sizes, only 640x480 and 400x300 are validprebidKeywords - prebid keywordspublic static void loadImage(android.widget.ImageView image,
java.lang.String url)