-
- All Implemented Interfaces:
-
com.appstock.sdk.rendering.views.webview.mraid.JSInterface
public class BaseJSInterface implements JSInterface
-
-
Field Summary
Fields Modifier and Type Field Description private final JsExecutorjsExecutorprivate final MraidVariableContainermraidVariableContainerprotected AppstockWebViewBasedefaultAdContainerfinal MraidScreenMetricsscreenMetricsprivate ViewGroup.LayoutParamsdefaultLayoutParams
-
Constructor Summary
Constructors Constructor Description BaseJSInterface(Context context, WebViewBase adBaseView, JsExecutor jsExecutor)
-
Method Summary
-
-
Constructor Detail
-
BaseJSInterface
BaseJSInterface(Context context, WebViewBase adBaseView, JsExecutor jsExecutor)
-
-
Method Detail
-
getJsExecutor
JsExecutor getJsExecutor()
-
getMraidVariableContainer
MraidVariableContainer getMraidVariableContainer()
-
getDefaultAdContainer
AppstockWebViewBase getDefaultAdContainer()
-
getScreenMetrics
MraidScreenMetrics getScreenMetrics()
-
getDefaultLayoutParams
ViewGroup.LayoutParams getDefaultLayoutParams()
-
setDefaultLayoutParams
void setDefaultLayoutParams(ViewGroup.LayoutParams originalParentLayoutParams)
-
getMaxSize
String getMaxSize()
-
getScreenSize
String getScreenSize()
-
getDefaultPosition
String getDefaultPosition()
-
getCurrentPosition
String getCurrentPosition()
-
onOrientationPropertiesChanged
void onOrientationPropertiesChanged(String properties)
-
getPlacementType
String getPlacementType()
-
close
void close()
-
resize
void resize()
-
expand
void expand()
-
javaScriptCallback
void javaScriptCallback(String handlerHash, String method, String value)
-
createCalendarEvent
void createCalendarEvent(String parameters)
-
storePicture
void storePicture(String url)
-
shouldUseCustomClose
@Deprecated() void shouldUseCustomClose(String useCustomClose)
-
getLocation
String getLocation()
-
getCurrentAppOrientation
String getCurrentAppOrientation()
-
unload
void unload()
-
onStateChange
void onStateChange(String state)
-
handleScreenViewabilityChange
void handleScreenViewabilityChange(boolean isViewable)
-
followToOriginalUrl
void followToOriginalUrl(String url, RedirectUrlListener listener)
-
getRootView
ViewGroup getRootView()
-
loading
void loading()
-
onReadyExpanded
void onReadyExpanded()
-
prepareAndSendReady
void prepareAndSendReady()
-
updateScreenMetricsAsync
void updateScreenMetricsAsync(@Nullable() Runnable successRunnable)
Updates screen metrics, calling the successRunnable once they are available. ThesuccessRunnable will always be called asynchronously, ie on the next main thread loop.
-
destroy
void destroy()
-
-
-
-