public class MraidController
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
MraidController.MraidListener |
static interface |
MraidController.MraidWebViewCacheListener |
static interface |
MraidController.UseCustomCloseListener |
Constructor and Description |
---|
MraidController(android.content.Context context,
AdReport adReport,
PlacementType placementType) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
fillContent(java.lang.Long broadcastIdentifier,
java.lang.String htmlData,
MraidController.MraidWebViewCacheListener listener)
Gets an MraidWebView and fills it with data.
|
android.widget.FrameLayout |
getAdContainer() |
android.content.Context |
getContext() |
MraidBridge.MraidWebView |
getCurrentWebView() |
protected void |
handleClose() |
protected void |
handleCustomClose(boolean useCustomClose) |
void |
loadJavascript(java.lang.String javascript)
Loads a javascript URL.
|
void |
pause(boolean isFinishing) |
void |
resume() |
void |
setDebugListener(MraidWebViewDebugListener debugListener) |
void |
setMraidListener(MraidController.MraidListener mraidListener) |
void |
setUseCustomCloseListener(MraidController.UseCustomCloseListener listener) |
public MraidController(@NonNull android.content.Context context, @Nullable AdReport adReport, @NonNull PlacementType placementType)
public void setMraidListener(@Nullable MraidController.MraidListener mraidListener)
public void setUseCustomCloseListener(@Nullable MraidController.UseCustomCloseListener listener)
public void setDebugListener(@Nullable MraidWebViewDebugListener debugListener)
public void fillContent(@Nullable java.lang.Long broadcastIdentifier, @NonNull java.lang.String htmlData, @Nullable MraidController.MraidWebViewCacheListener listener)
broadcastIdentifier
- The unique identifier of an interstitial. This can be null,
especially when there is no interstitial.htmlData
- The HTML of the ad. This will only be loaded if a cached WebView
is not found.listener
- Optional listener that (if non-null) is notified when an
MraidWebView is loaded from the cache or created.@Nullable public MraidBridge.MraidWebView getCurrentWebView()
public void pause(boolean isFinishing)
public void resume()
public void destroy()
protected void handleClose()
protected void handleCustomClose(boolean useCustomClose)
@NonNull public android.widget.FrameLayout getAdContainer()
public void loadJavascript(@NonNull java.lang.String javascript)
@NonNull public android.content.Context getContext()