Class RenderView
-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback,android.view.GestureDetector.OnDoubleTapListener,android.view.GestureDetector.OnGestureListener,android.view.KeyEvent.Callback,android.view.ViewGroup.OnHierarchyChangeListener,android.view.ViewManager,android.view.ViewParent,android.view.ViewTreeObserver.OnGlobalFocusChangeListener,android.view.accessibility.AccessibilityEventSource,com.inmobi.ads.containers.AdContainer,com.inmobi.ads.containers.BlobReceiver,com.inmobi.ads.containers.RedirectionValidator,com.inmobi.ads.containers.gestures.MovementGestureDetector.OnMovementGestureListener,com.inmobi.ads.containers.gestures.TouchGestureHandler.TouchGestureListener,com.inmobi.ads.rendering.adactivity.OrientationUpdateListener
public class RenderView extends BaseWebView implements AdContainer, BlobReceiver, MovementGestureDetector.OnMovementGestureListener, GestureDetector.OnGestureListener, TouchGestureHandler.TouchGestureListener, GestureDetector.OnDoubleTapListener, OrientationUpdateListener, RedirectionValidator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interfaceRenderView.InteractionTypepublic @interfaceRenderView.RenderViewStatepublic classRenderView.Companion
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RenderView(Context context, Byte mPlacementType, Set<TrackerAttr> mViewabilityTrackers, String impressionId, Boolean isInAppBrowser, String landingScheme, Long viewTouchTimestamp, RenderViewMetaData renderViewMetaData, InMobiLogger logger, Route route, WebViewFactory webViewFactory, AdMetaData adMetaData, AdConfig adConfig)
-
Method Summary
-
Methods inherited from class com.inmobi.ads.containers.BaseWebView
getLandingPageHandler -
Methods inherited from class android.view.View
addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, animate, announceForAccessibility, autofill, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, checkInputConnectionProxy, clearAnimation, clearPendingCredentialRequest, clearViewTranslationCallback, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, draw, drawableHotspotChanged, findOnBackInvokedDispatcher, findViewById, findViewWithTag, focusSearch, forceHasOverlappingRendering, forceLayout, generateDisplayHash, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAllowedHandwritingDelegatePackageName, getAllowedHandwritingDelegatorPackageName, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContentSensitivity, getContext, getDefaultFocusHighlightEnabled, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getFrameContentVelocity, getGlobalVisibleRect, getGlobalVisibleRect, getHandwritingBoundsOffsetBottom, getHandwritingBoundsOffsetLeft, getHandwritingBoundsOffsetRight, getHandwritingBoundsOffsetTop, getHandwritingDelegateFlags, getHandwritingDelegatorCallback, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPendingCredentialCallback, getPendingCredentialRequest, getPivotX, getPivotY, getPointerIcon, getPreferKeepClearRects, getReceiveContentMimeTypes, getRequestedFrameRate, getResources, getRevealOnFocusHint, getRight, getRootSurfaceControl, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollCaptureHint, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSupplementalDescription, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTouchDelegate, getTouchables, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTranslationResponse, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOnLongClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityDataSensitive, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isAutoHandwritingEnabled, isClickable, isContentSensitive, isContextClickable, isCredential, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHandwritingDelegate, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingRelative, isPivotSet, isPreferKeepClear, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollContainer, isScrollbarFadingEnabled, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, keyboardNavigationClusterSearch, measure, offsetLeftAndRight, offsetTopAndBottom, onCancelPendingInputEvents, onCapturedPointerEvent, onCreateViewTranslationRequest, onDrawForeground, onFilterTouchEventForSecurity, onHoverChanged, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyLongPress, onKeyPreIme, onKeyShortcut, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideStructure, onReceiveContent, onRtlPropertiesChanged, onScreenStateChanged, onScrollCaptureSearch, onViewTranslationResponse, onVisibilityAggregated, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performHapticFeedback, performLongClick, performReceiveContent, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, reportAppJankStats, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, requestUnbufferedDispatch, requireViewById, resetPivot, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDataSensitive, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAllowClickWhenDisabled, setAllowedHandwritingDelegatePackage, setAllowedHandwritingDelegatorPackage, setAlpha, setAnimation, setAnimationMatrix, setAutoHandwritingEnabled, setAutofillHints, setAutofillId, setBackground, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContentSensitivity, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setFrameContentVelocity, setHandwritingBoundsOffsets, setHandwritingDelegateFlags, setHandwritingDelegatorCallback, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setIsCredential, setIsHandwritingDelegate, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayoutDirection, setLeft, setLeftTopRightBottom, setLongClickable, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnReceiveContentListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setPadding, setPaddingRelative, setPendingCredentialRequest, setPivotX, setPivotY, setPointerIcon, setPreferKeepClear, setPreferKeepClearRects, setPressed, setRenderEffect, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollBarSize, setScrollCaptureCallback, setScrollCaptureHint, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setScrollbarFadingEnabled, setSelected, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSupplementalDescription, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setViewTranslationCallback, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, willNotCacheDrawing, willNotDraw -
Methods inherited from class android.webkit.WebView
addJavascriptInterface, autofill, canGoBack, canGoBackOrForward, canGoForward, canZoomIn, canZoomOut, capturePicture, clearCache, clearFormData, clearHistory, clearMatches, clearSslPreferences, clearView, computeScroll, copyBackForwardList, createPrintDocumentAdapter, createPrintDocumentAdapter, createWebMessageChannel, destroy, dispatchCreateViewTranslationRequest, dispatchKeyEvent, documentHasImages, evaluateJavascript, findAll, findAllAsync, findFocus, findNext, flingScroll, freeMemory, getAccessibilityClassName, getAccessibilityNodeProvider, getCertificate, getContentHeight, getFavicon, getHandler, getHitTestResult, getHttpAuthUsernamePassword, getOriginalUrl, getProgress, getRendererPriorityWaivedWhenNotVisible, getRendererRequestedPriority, getScale, getSettings, getTextClassifier, getTitle, getUrl, getWebChromeClient, getWebViewClient, getWebViewLooper, getWebViewRenderProcess, getWebViewRenderProcessClient, goBack, goBackOrForward, goForward, invokeZoomPicker, isPrivateBrowsingEnabled, isVisibleToUserForAutofill, loadData, loadDataWithBaseURL, loadUrl, loadUrl, onApplyWindowInsets, onCheckIsTextEditor, onChildViewAdded, onChildViewRemoved, onCreateInputConnection, onCreateVirtualViewTranslationRequests, onDragEvent, onFinishTemporaryDetach, onGenericMotionEvent, onGlobalFocusChanged, onHoverEvent, onKeyDown, onKeyMultiple, onKeyUp, onPause, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideVirtualStructure, onResolvePointerIcon, onResume, onStartTemporaryDetach, onTrackballEvent, onVirtualViewTranslationResponses, overlayHorizontalScrollbar, overlayVerticalScrollbar, pageDown, pageUp, pauseTimers, performLongClick, postUrl, postVisualStateCallback, postWebMessage, reload, removeJavascriptInterface, requestChildRectangleOnScreen, requestFocus, requestFocusNodeHref, requestImageRef, restoreState, resumeTimers, savePassword, saveState, saveWebArchive, saveWebArchive, setBackgroundColor, setCertificate, setDownloadListener, setFindListener, setHorizontalScrollbarOverlay, setHttpAuthUsernamePassword, setInitialScale, setLayerType, setLayoutParams, setMapTrackballToArrowKeys, setNetworkAvailable, setOverScrollMode, setPictureListener, setRendererPriorityPolicy, setScrollBarStyle, setTextClassifier, setVerticalScrollbarOverlay, setWebChromeClient, setWebViewClient, setWebViewRenderProcessClient, setWebViewRenderProcessClient, shouldDelayChildPressedState, showFindDialog, zoomBy, zoomIn, zoomOut -
Methods inherited from class android.view.ViewGroup
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, bringChildToFront, childDrawableStateChanged, childHasTransientStateChanged, clearChildFocus, clearDisappearingChildren, clearFocus, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchScrollCaptureSearch, dispatchSetActivated, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, endViewTransition, findOnBackInvokedDispatcherForChild, findViewsWithText, focusSearch, focusableViewAvailable, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isLayoutSuppressed, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onDescendantInvalidated, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestSendAccessibilityEvent, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, propagateRequestedFrameRate, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestDisallowInterceptTouchEvent, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setRequestedFrameRate, setTouchscreenBlocksFocus, setTransitionGroup, setWindowInsetsAnimationCallback, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, suppressLayout, updateViewLayout -
Methods inherited from class android.view.ViewParent
requestChildRectangleOnScreen -
Methods inherited from class android.widget.AbsoluteLayout
generateLayoutParams -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
RenderView
RenderView(Context context, Byte mPlacementType, Set<TrackerAttr> mViewabilityTrackers, String impressionId, Boolean isInAppBrowser, String landingScheme, Long viewTouchTimestamp, RenderViewMetaData renderViewMetaData, InMobiLogger logger, Route route, WebViewFactory webViewFactory, AdMetaData adMetaData, AdConfig adConfig)
-
-
Method Detail
-
getImpressionType
final Byte getImpressionType()
-
getWvStateMachine
final StateMachine getWvStateMachine()
-
getSiblingWebviewManager
final <Error class: unknown class> getSiblingWebviewManager()
-
getBannerHolderActivity
final WeakReference<Activity> getBannerHolderActivity()
-
setBannerHolderActivity
final Unit setBannerHolderActivity(WeakReference<Activity> bannerHolderActivity)
-
getViewState
final String getViewState()
-
getMediaProcessor
final MraidMediaProcessor getMediaProcessor()
-
isDisableOpeningUrlsInExternalApp
final Boolean isDisableOpeningUrlsInExternalApp()
-
isDefaultPositionLockActive
final Boolean isDefaultPositionLockActive()
-
isCurrentPositionLockActive
final Boolean isCurrentPositionLockActive()
-
isCustomClose
final Boolean isCustomClose()
-
isViewable
final Boolean isViewable()
-
isBackButtonDisabled
final Boolean isBackButtonDisabled()
-
setBackButtonDisabled
final Unit setBackButtonDisabled(Boolean isBackButtonDisabled)
-
getDefaultPositionMonitor
final Object getDefaultPositionMonitor()
-
getCurrentPositionMonitor
final Object getCurrentPositionMonitor()
-
getPlacementId
final Long getPlacementId()
-
setPlacementId
final Unit setPlacementId(Long placementId)
-
getCreativeId
String getCreativeId()
-
setCreativeId
Unit setCreativeId(String creativeId)
-
getRenderViewTelemetry
final RenderViewTelemetryManager getRenderViewTelemetry()
-
setRenderViewTelemetry
final Unit setRenderViewTelemetry(RenderViewTelemetryManager renderViewTelemetry)
-
getAdType
String getAdType()
Refactor this adType to Non-Nullable type by consuming as part of the RenderView constructor Currently RenderView is used for CustomBrowser, in this case the adType will be null.
-
setAdType
Unit setAdType(String adType)
Refactor this adType to Non-Nullable type by consuming as part of the RenderView constructor Currently RenderView is used for CustomBrowser, in this case the adType will be null.
-
getFriendlyViews
Map<View, FriendlyObstructionPurpose> getFriendlyViews()
Refactor this friendlyViews that is supposed to be passed directly to impression or viewability tracking class.
-
setFriendlyViews
Unit setFriendlyViews(Map<View, FriendlyObstructionPurpose> friendlyViews)
Refactor this friendlyViews that is supposed to be passed directly to impression or viewability tracking class.
-
isPreloadView
final Boolean isPreloadView()
-
setPreloadView
final Unit setPreloadView(Boolean isPreloadView)
-
getAllowAutoRedirection
final Boolean getAllowAutoRedirection()
-
setAllowAutoRedirection
final Unit setAllowAutoRedirection(Boolean allowAutoRedirection)
-
getAdPodHandler
final AdPodHandler getAdPodHandler()
-
setAdPodHandler
final Unit setAdPodHandler(AdPodHandler adPodHandler)
-
getContentURL
final String getContentURL()
-
setContentURL
final Unit setContentURL(String contentURL)
-
getViewableFrameArray
final IntArray getViewableFrameArray()
-
getConfiguredArea
final Long getConfiguredArea()
-
setConfiguredArea
final Unit setConfiguredArea(Long configuredArea)
-
getMinimumPixelsPainted
final Integer getMinimumPixelsPainted()
-
getEmbeddedBrowserJsCallbacks
final EmbeddedBrowserJSCallbacks getEmbeddedBrowserJsCallbacks()
-
setEmbeddedBrowserJsCallbacks
final Unit setEmbeddedBrowserJsCallbacks(EmbeddedBrowserJSCallbacks embeddedBrowserJsCallbacks)
-
getOrientationProperties
final OrientationProperties getOrientationProperties()
-
setOrientationProperties
final Unit setOrientationProperties(OrientationProperties orientationProperties)
-
getExposureTracker
final AdExposureTracker getExposureTracker()
-
setExposureTracker
final Unit setExposureTracker(AdExposureTracker exposureTracker)
-
getBeaconUrl
final String getBeaconUrl()
-
setBeaconUrl
final Unit setBeaconUrl(String beaconUrl)
-
getShouldFireLandingPageBeacons
final Boolean getShouldFireLandingPageBeacons()
-
setShouldFireLandingPageBeacons
final Unit setShouldFireLandingPageBeacons(Boolean shouldFireLandingPageBeacons)
-
isUnloaded
final Boolean isUnloaded()
-
getTelemetryManagerMap
Map<String, AdUnitTelemetryHelper> getTelemetryManagerMap()
Method to get impression telemetry.
- Returns:
TelemetryManagerMap.
-
setTelemetryManagerMap
Unit setTelemetryManagerMap(Map<String, AdUnitTelemetryHelper> telemetryManagerMap)
Method to get impression telemetry.
- Returns:
TelemetryManagerMap.
-
getTelemetryOnAdImpression
TelemetryOnAdImpression getTelemetryOnAdImpression()
Method to get impression telemetry.
- Returns:
TelemetryOnAdImpression.
-
getWindowInsetListener
final WindowInsetListener getWindowInsetListener()
-
getMarkupTypeAdUnit
final String getMarkupTypeAdUnit()
-
setMarkupTypeAdUnit
final Unit setMarkupTypeAdUnit(String markupTypeAdUnit)
-
getVISIBILITY_CHANGE_LISTENER
final VisibilityChangeListener getVISIBILITY_CHANGE_LISTENER()
-
isImmersiveMode
final Boolean isImmersiveMode()
-
setImmersiveMode
final Unit setImmersiveMode(Boolean isImmersiveMode)
-
getDataModel
Object getDataModel()
- Returns:
the data model for this container.
-
getContextualDataHandler
final ContextualDataHandler getContextualDataHandler()
-
setContextualDataHandler
final Unit setContextualDataHandler(ContextualDataHandler contextualDataHandler)
-
getFullScreenEventsListener
AdContainer.AdScreenEventsListener getFullScreenEventsListener()
- Returns:
implementation of the AdScreenEventsListener interface.
-
getPlacementType
Byte getPlacementType()
- Returns:
the
PlacementTypebacking this container.
-
getContainerContext
Context getContainerContext()
-
getDefaultPosition
final String getDefaultPosition()
-
getCurrentPosition
final String getCurrentPosition()
-
getFullScreenActivity
final Activity getFullScreenActivity()
-
getRenderingConfig
final AdConfig.RenderingConfig getRenderingConfig()
-
getInAppActivityBrowserClientListener
final InAppActivityBrowserClientListener getInAppActivityBrowserClientListener()
-
setInAppActivityBrowserClientListener
final Unit setInAppActivityBrowserClientListener(InAppActivityBrowserClientListener inAppActivityBrowserClientListener)
-
isDestroyed
Boolean isDestroyed()
- Returns:
trueif this container is destroyed
-
getVideoContainerView
View getVideoContainerView()
-
getReferenceContainer
AdContainer getReferenceContainer()
-
getViewableAd
ViewableAd getViewableAd()
- Returns:
the inflated viewableAd;
nullif no viewableAd was created.
-
getMarkupType
String getMarkupType()
The type of markup that this container loads
- Returns:
one of the MarkupType enumerations.
-
getListener
final RenderViewEventListener getListener()
-
getMraidJsString
final String getMraidJsString()
-
getCurrentRenderingPodAdIndex
@WorkerThread() final Integer getCurrentRenderingPodAdIndex()
-
getRenderableAdIndexes
@WorkerThread() final JSONArray getRenderableAdIndexes()
-
getShowTimeStamp
@WorkerThread() final Long getShowTimeStamp()
-
getCloseAssetArea
final WindowInsetsHandler.FinalInsets.Insets getCloseAssetArea()
-
setCloseAssetArea
final Unit setCloseAssetArea(WindowInsetsHandler.FinalInsets.Insets closeAssetArea)
-
getImpressionId
String getImpressionId()
-
setImpressionId
Unit setImpressionId(String impressionId)
-
isInAppBrowser
final Boolean isInAppBrowser()
-
getLandingScheme
final String getLandingScheme()
-
setLandingScheme
final Unit setLandingScheme(String landingScheme)
-
getViewTouchTimestamp
Long getViewTouchTimestamp()
This returns the View Touch Timestamp of the user on the ad or Embedded browser. This is used to validate redirections if they occur within the permissible time defined by AdConfig.RenderConfig.userTouchResetTime
-
setViewTouchTimestamp
Unit setViewTouchTimestamp(Long viewTouchTimestamp)
This returns the View Touch Timestamp of the user on the ad or Embedded browser. This is used to validate redirections if they occur within the permissible time defined by AdConfig.RenderConfig.userTouchResetTime
-
getWebViewFactory
final WebViewFactory getWebViewFactory()
-
getAdMetaData
final AdMetaData getAdMetaData()
-
getAdConfig
AdConfig getAdConfig()
Method to get the adConfig.
- Returns:
the current adConfig.
-
setEnableNativeGestures
final Unit setEnableNativeGestures(Boolean enabled)
-
setEnableTouchBeginCallback
final Unit setEnableTouchBeginCallback(Boolean enabled)
-
setEnableTouchEndCallback
final Unit setEnableTouchEndCallback(Boolean enabled)
-
onPanDetected
Unit onPanDetected(MovementGestureDetector movementGestureDetector)
-
onPinchDetected
Unit onPinchDetected(MovementGestureDetector movementGestureDetector, MotionEvent initialEvent, MotionEvent endEvent)
-
onRotation
Unit onRotation(MovementGestureDetector rotationDetector, MotionEvent initialEvent, MotionEvent endEvent)
-
onDown
Boolean onDown(MotionEvent e)
-
onShowPress
Unit onShowPress(MotionEvent e)
-
onSingleTapUp
Boolean onSingleTapUp(MotionEvent e)
-
onScroll
Boolean onScroll(MotionEvent e1, MotionEvent e2, Float distanceX, Float distanceY)
-
onLongPress
Unit onLongPress(MotionEvent e)
-
onFling
Boolean onFling(MotionEvent e1, MotionEvent e2, Float velocityX, Float velocityY)
-
onSingleTapConfirmed
Boolean onSingleTapConfirmed(MotionEvent e)
-
onDoubleTap
Boolean onDoubleTap(MotionEvent e)
-
onDoubleTapEvent
Boolean onDoubleTapEvent(MotionEvent e)
-
onTouchBegin
Unit onTouchBegin(Float x, Float y)
-
onTouchEnd
Unit onTouchEnd(Float x, Float y)
-
setWatermark
final Unit setWatermark(WatermarkData watermarkData)
-
setBlobProvider
final Unit setBlobProvider(BlobProvider blobProvider)
-
setDefaultPositionLock
final Unit setDefaultPositionLock()
-
setCurrentPositionLock
final Unit setCurrentPositionLock()
-
shouldStopLoggingOnDestroy
final Unit shouldStopLoggingOnDestroy(Boolean value)
-
setDefaultPosition
final Unit setDefaultPosition()
-
setCurrentPosition
final Unit setCurrentPosition()
-
disableUrlsToOpenInExternalApp
final Unit disableUrlsToOpenInExternalApp()
-
setFullScreenActivityContext
Unit setFullScreenActivityContext(Activity activity)
Set the View Controller used to display fullscreen ads.
-
triggerAdScreenDismissedCallback
final Unit triggerAdScreenDismissedCallback()
-
onWindowVisibilityChanged
Unit onWindowVisibilityChanged(Integer visibility)
-
onWindowFocusChanged
Unit onWindowFocusChanged(Boolean hasWindowFocus)
-
submitAdReport
final Unit submitAdReport(String url, Boolean takeScreenShot, String templateInfoStr)
-
fireAttachedToWindowEvent
final Unit fireAttachedToWindowEvent()
-
syncCloseButtonState
final Unit syncCloseButtonState()
-
dispatchTouchEvent
Boolean dispatchTouchEvent(MotionEvent event)
-
onTouchEvent
Boolean onTouchEvent(MotionEvent event)
-
onDetachedFromWindow
Unit onDetachedFromWindow()
-
initialize
final Unit initialize(RenderViewEventListener listener)
-
loadHtmlVideo
final Unit loadHtmlVideo(HtmlVideoPlayerRequest requestConfig)
Loads HTML Video Player based on the device capabilities and configuration.
-
inflateVideoPlayer
Unit inflateVideoPlayer(ViewGroup adBackgroundView)
Inflate video player view inside the provided ad background view.
- Parameters:
adBackgroundView- The background view where video player has to be inflated.
-
updateVideoPosition
final Unit updateVideoPosition(VideoViewPosition videoViewPosition, String params)
Updates the video position of the HTML Video Player.
-
handleHybridVideoPlayerActions
final Unit handleHybridVideoPlayerActions(VideoPlayerActions action, Object params)
Handles various actions for the HTML Video Player.
-
getPlaybackState
final HtmlVideoPlaybackState getPlaybackState()
Retrieves the current playback state of the HTML Video Player.
-
destroyHtmlVideo
final Unit destroyHtmlVideo()
Destroys the HTML Video Player and releases associated resources.
-
isHybridVideoSupported
final Boolean isHybridVideoSupported()
-
onAdInteraction
final Unit )>onAdInteraction(<Error class: unknown class><Object, Object> params)
-
setLandingPageTelemetryControlInfoOnWebViewClient
final Unit setLandingPageTelemetryControlInfoOnWebViewClient(LandingPageTelemetryControlInfo lpTelemetryControlInfo)
-
getSafeArea
final JSONObject getSafeArea()
-
initContextualData
final Unit initContextualData(Ad adObject)
-
retrieveLandingPageTelemetryMetaData
final LandingPageTelemetryMetaData retrieveLandingPageTelemetryMetaData()
-
setScrollable
final Unit setScrollable(Boolean isScrollable)
-
deferredDestroy
final Unit deferredDestroy()
-
destroyContainer
Unit destroyContainer()
Destroy this ad container, preventing it from future use.
-
destroyComponents
final Unit destroyComponents()
-
fireEvent
Unit fireEvent(Byte type, Map<String, String> macroSubs)
Implement event injection by this container
- Parameters:
type- an @EventType bytemacroSubs- any macros that must be replaced while injecting the event.
-
setReferenceContainer
Unit setReferenceContainer(AdContainer container)
Method to set the reference container.
- Parameters:
container- Reference container to be set.
-
loadDataInWebView
final Unit loadDataInWebView(String content)
-
loadUrlInWebView
final Unit loadUrlInWebView(String url)
-
isHtmlUrlPrefetchActive
final Boolean isHtmlUrlPrefetchActive()
-
cancelHtmlUrlPrefetch
final Unit cancelHtmlUrlPrefetch()
-
loadHtmlUrl
final Unit loadHtmlUrl(String url, Boolean prefetchUsingNetworkClient)
-
stopLoading
Unit stopLoading()
-
sendFraudBeaconAndTelemetryEvent
Unit sendFraudBeaconAndTelemetryEvent(String mraidApi)
This method sends the fraudBeacon in telemetry.
-
fireNextAdLoadComplete
final Unit fireNextAdLoadComplete(Boolean success)
-
sendTelemetryEventForNetworkLoad
final Unit sendTelemetryEventForNetworkLoad()
-
fireImpression
Unit fireImpression()
-
onOrientationChange
final Unit onOrientationChange(Orientation orientation)
-
fireOrientationChange
final Unit fireOrientationChange(Integer orientation)
-
handleErrorAndReportTelemetry
final Unit handleErrorAndReportTelemetry(JSONObject message, String action)
-
fireIncentCompleted
final Unit fireIncentCompleted()
Notifies the creative template that the SDK has received and accepted the incentCompleted bridge call.
-
fireVideoError
final Unit fireVideoError(JSONObject message, String action)
-
fireJavaScriptCallback
final Unit fireJavaScriptCallback(String jsCallbackNamespace, String callback)
-
injectJavaScript
final Unit injectJavaScript(String js)
-
broadcastReadyEventToJsBridge
final Unit broadcastReadyEventToJsBridge()
-
broadCastJsCall
final Unit broadCastJsCall(String value)
-
processMediaPlaybackRequest
final Unit processMediaPlaybackRequest(String jsCallbackNamespace, String url)
-
handleOrientationProperties
@UiThread() Unit handleOrientationProperties(OrientationProperties orientationProperties)
This function is kept open to allow subclasses (particularly RenderViewSiblings) to override orientation property handling. This ensures that when orientation changes are requested via one view, it is applied to the ad and then they can be consistently propagated to other related views to maintain a single source of truth across the ad ecosystem.
Since siblings need to stay in sync with the primary RenderView's orientation state, keeping this method open allows for that coordination mechanism.
-
setUseCustomClose
final Unit setUseCustomClose(Boolean isCustomClose)
-
setDisableBackButton
final Unit setDisableBackButton(Boolean shouldDisableBackButton)
-
registerBackButtonPressedEventListener
final Unit registerBackButtonPressedEventListener(String jsCallbackNamespace)
-
unregisterBackButtonPressedEventListener
final Unit unregisterBackButtonPressedEventListener()
-
fireBackButtonPressedEvent
final Unit fireBackButtonPressedEvent()
-
processDisableCloseRegionRequest
final Unit processDisableCloseRegionRequest(Boolean shouldDisableCloseRegion)
-
processUseCustomCloseRequest
final Unit processUseCustomCloseRequest(Boolean customClose)
-
processUnload
final Unit processUnload()
-
dismissCurrentIntAdViewContainerInShowNextPodFlow
final Unit dismissCurrentIntAdViewContainerInShowNextPodFlow()
-
dismissCurrentViewContainer
Unit dismissCurrentViewContainer()
Close the fullscreen ad.
-
setExitAnimation
Unit setExitAnimation(Integer exitAnimationResourceId)
Set the exit animation resource for fullscreen placements.
-
onOrientationUpdate
Unit onOrientationUpdate(Orientation orientation)
-
setRenderViewEventListener
final Unit setRenderViewEventListener(RenderViewEventListener renderViewEventListener)
-
setAndUpdateViewState
final Unit setAndUpdateViewState(String state)
-
resetLayout
final Unit resetLayout()
-
disableHardwareAcceleration
Unit disableHardwareAcceleration()
Disable hardware acceleration on the underlying views.
-
canRedirectExternally
Boolean canRedirectExternally()
Defines if user can be redirected externally to other apps. This check has been added as publishers are reporting redirections happening on inmobi from MAX Dashboard.
This method is to take into consideration of 2 checks
Has user made an actual touch on the ad ?
Is auto redirection allowed from Ad Config.
This is to be removed in future, once the cause of the redirections have been identified.
- Returns:
true if user can redirect to an external app and false otherwise.
-
hasUserInteracted
Boolean hasUserInteracted()
Defines if sdk is permitted to handle calls from javascript via mraid.open, imraid.openWithoutTracker, imraid.openExternal, imai.openEmbedded, location.href, location.assign, location.replace, location navigation.navigate, navigation.reload
This method is to take into consideration of 3 checks
Has user made an actual touch on the ad ?
Is auto redirection allowed from AdConfig.RenderingConfig.autoRedirectionEnforcement
If Ad Response allows auto redirection
- Returns:
true if user can redirect to an external app and false otherwise.
-
skipFromInterActive
final Unit skipFromInterActive()
-
completeFromInterActive
final Unit completeFromInterActive()
-
retrievedBlob
Unit retrievedBlob(String jsCallbackNamespace, String callback, String blob)
This method is used as callback to caller of BlobProvider#getBlob(String, String, BlobReceiver).
-
loadPodAd
@WorkerThread() final Unit loadPodAd(Integer index)
-
showPodAdAtIndex
@WorkerThread() final Unit showPodAdAtIndex(Integer index)
-
timeSincePodShow
@WorkerThread() final Long timeSincePodShow()
-
closeAll
@WorkerThread() final Unit closeAll()
-
fireAdReady
@WorkerThread() final Unit fireAdReady()
-
updateWebViewLoaded
final Unit updateWebViewLoaded()
-
fireAdFailed
@WorkerThread() final Unit fireAdFailed(String errorCode)
-
fireNextAdShowComplete
final Unit fireNextAdShowComplete(Boolean success)
-
creativeType
final Unit creativeType(String creativeType)
-
fireClickTrackers
final Unit fireClickTrackers()
-
handlePing
final Unit handlePing(String json)
-
handlePingException
final Unit handlePingException(Exception e)
-
onUserLandingCompleted
final Unit onUserLandingCompleted(String api, String jsCallbackNamespace, String url)
-
onCTLifeCycleEvent
final Unit onCTLifeCycleEvent(JSONObject jsonObject)
-
onLpLifeCycleEvent
final Unit onLpLifeCycleEvent(JSONObject jsonObject)
-
fireLandingPageTracker
final Unit fireLandingPageTracker(String trackerName, Map<String, String> macros)
-
onImpressionFired
Unit onImpressionFired()
This function is kept open to allow subclasses (particularly RenderViewSiblings) to override impression fired handling. However, in cases where a template fires an impression from a sibling view, it should not be allowed to trigger the actual impression logic, as impressions should only be tracked once per ad instance.
The primary RenderView should handle the actual impression tracking, while siblings should implement their own version that does not propagate to avoid duplicate impression tracking.
-
onImraidLog
final Unit onImraidLog(String log)
-
getAdQualityManager
final AdQualityManager getAdQualityManager()
-
getCreativeID
final String getCreativeID()
-
submitTemplateTelemetryEvent
final Unit submitTemplateTelemetryEvent(String eventType, String payload)
-
onCloseClick
final Unit onCloseClick()
-
onReloadClick
final Unit onReloadClick()
-
onBackPress
final Unit onBackPress()
-
onActivityDestroyed
final Unit onActivityDestroyed()
-
inAppBrowserLoaderHidden
final Unit inAppBrowserLoaderHidden()
-
onRenderProcessGone
final Unit onRenderProcessGone(Boolean didCrash)
-
fireRenderProcessGoneTelemetry
final Unit fireRenderProcessGoneTelemetry(Boolean didCrash, Short errorCode)
-
fireLoadWebViewSuccess
final Unit fireLoadWebViewSuccess(RenderView sourceView, String targetId)
-
fireShowWebViewSuccess
final Unit fireShowWebViewSuccess(RenderView sourceView, String targetId)
-
fireDestroyWebViewSuccess
final Unit fireDestroyWebViewSuccess(RenderView sourceView, String targetId)
-
setUnloaded
final Unit setUnloaded(Boolean unloaded)
-
getUnloaded
final Boolean getUnloaded()
-
setPingManager
final Unit setPingManager(PingManager pingManager)
-
setPingAckListener
final Unit setPingAckListener(PingManager.PingAckListener pingAckListener)
-
-
-
-