Class POBWebView
-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback,android.view.KeyEvent.Callback,android.view.ViewGroup.OnHierarchyChangeListener,android.view.ViewManager,android.view.ViewParent,android.view.ViewTreeObserver.OnGlobalFocusChangeListener,android.view.accessibility.AccessibilityEventSource
public class POBWebView extends WebView
Custom WebView to get internal events on View
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfacePOBWebView.WebViewBackPressBackpress Interface to provide backpress to implemented class
public interfacePOBWebView.OnFocusChangedListenerFocusChange listener to provide focus notification to implemented class
-
Field Summary
Fields Modifier and Type Field Description public final static intRENDERER_PRIORITY_BOUNDpublic final static intRENDERER_PRIORITY_IMPORTANTpublic final static intRENDERER_PRIORITY_WAIVEDpublic final static StringSCHEME_GEOpublic final static StringSCHEME_MAILTOpublic final static StringSCHEME_TELpublic final static intFOCUS_AFTER_DESCENDANTSpublic final static intFOCUS_BEFORE_DESCENDANTSpublic final static intFOCUS_BLOCK_DESCENDANTSpublic final static intLAYOUT_MODE_CLIP_BOUNDSpublic final static intLAYOUT_MODE_OPTICAL_BOUNDSpublic final static intPERSISTENT_ALL_CACHESpublic final static intPERSISTENT_ANIMATION_CACHEpublic final static intPERSISTENT_NO_CACHEpublic final static intPERSISTENT_SCROLLING_CACHEpublic final static intACCESSIBILITY_DATA_SENSITIVE_AUTOpublic final static intACCESSIBILITY_DATA_SENSITIVE_NOpublic final static intACCESSIBILITY_DATA_SENSITIVE_YESpublic final static intACCESSIBILITY_LIVE_REGION_ASSERTIVEpublic final static intACCESSIBILITY_LIVE_REGION_NONEpublic final static intACCESSIBILITY_LIVE_REGION_POLITEpublic final static Property<View, Float>ALPHApublic final static intAUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWSpublic final static StringAUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATEpublic final static StringAUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAYpublic final static StringAUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTHpublic final static StringAUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEARpublic final static StringAUTOFILL_HINT_CREDIT_CARD_NUMBERpublic final static StringAUTOFILL_HINT_CREDIT_CARD_SECURITY_CODEpublic final static StringAUTOFILL_HINT_EMAIL_ADDRESSpublic final static StringAUTOFILL_HINT_NAMEpublic final static StringAUTOFILL_HINT_PASSWORDpublic final static StringAUTOFILL_HINT_PHONEpublic final static StringAUTOFILL_HINT_POSTAL_ADDRESSpublic final static StringAUTOFILL_HINT_POSTAL_CODEpublic final static StringAUTOFILL_HINT_USERNAMEpublic final static intAUTOFILL_TYPE_DATEpublic final static intAUTOFILL_TYPE_LISTpublic final static intAUTOFILL_TYPE_NONEpublic final static intAUTOFILL_TYPE_TEXTpublic final static intAUTOFILL_TYPE_TOGGLEpublic final static intDRAG_FLAG_ACCESSIBILITY_ACTIONpublic final static intDRAG_FLAG_GLOBALpublic final static intDRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSIONpublic final static intDRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSIONpublic final static intDRAG_FLAG_GLOBAL_URI_READpublic final static intDRAG_FLAG_GLOBAL_URI_WRITEpublic final static intDRAG_FLAG_OPAQUEpublic final static intDRAWING_CACHE_QUALITY_AUTOpublic final static intDRAWING_CACHE_QUALITY_HIGHpublic final static intDRAWING_CACHE_QUALITY_LOWpublic final static intFIND_VIEWS_WITH_CONTENT_DESCRIPTIONpublic final static intFIND_VIEWS_WITH_TEXTpublic final static intFOCUSABLEpublic final static intFOCUSABLES_ALLpublic final static intFOCUSABLES_TOUCH_MODEpublic final static intFOCUSABLE_AUTOpublic final static intFOCUS_BACKWARDpublic final static intFOCUS_DOWNpublic final static intFOCUS_FORWARDpublic final static intFOCUS_LEFTpublic final static intFOCUS_RIGHTpublic final static intFOCUS_UPpublic final static intGONEpublic final static intHAPTIC_FEEDBACK_ENABLEDpublic final static intIMPORTANT_FOR_ACCESSIBILITY_AUTOpublic final static intIMPORTANT_FOR_ACCESSIBILITY_NOpublic final static intIMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTSpublic final static intIMPORTANT_FOR_ACCESSIBILITY_YESpublic final static intIMPORTANT_FOR_AUTOFILL_AUTOpublic final static intIMPORTANT_FOR_AUTOFILL_NOpublic final static intIMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTSpublic final static intIMPORTANT_FOR_AUTOFILL_YESpublic final static intIMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTSpublic final static intIMPORTANT_FOR_CONTENT_CAPTURE_AUTOpublic final static intIMPORTANT_FOR_CONTENT_CAPTURE_NOpublic final static intIMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTSpublic final static intIMPORTANT_FOR_CONTENT_CAPTURE_YESpublic final static intIMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTSpublic final static intINVISIBLEpublic final static intKEEP_SCREEN_ONpublic final static intLAYER_TYPE_HARDWAREpublic final static intLAYER_TYPE_NONEpublic final static intLAYER_TYPE_SOFTWAREpublic final static intLAYOUT_DIRECTION_INHERITpublic final static intLAYOUT_DIRECTION_LOCALEpublic final static intLAYOUT_DIRECTION_LTRpublic final static intLAYOUT_DIRECTION_RTLpublic final static intMEASURED_HEIGHT_STATE_SHIFTpublic final static intMEASURED_SIZE_MASKpublic final static intMEASURED_STATE_MASKpublic final static intMEASURED_STATE_TOO_SMALLpublic final static intNOT_FOCUSABLEpublic final static intNO_IDpublic final static intOVER_SCROLL_ALWAYSpublic final static intOVER_SCROLL_IF_CONTENT_SCROLLSpublic final static intOVER_SCROLL_NEVERpublic final static Property<View, Float>ROTATIONpublic final static Property<View, Float>ROTATION_Xpublic final static Property<View, Float>ROTATION_Ypublic final static Property<View, Float>SCALE_Xpublic final static Property<View, Float>SCALE_Ypublic final static intSCREEN_STATE_OFFpublic final static intSCREEN_STATE_ONpublic final static intSCROLLBARS_INSIDE_INSETpublic final static intSCROLLBARS_INSIDE_OVERLAYpublic final static intSCROLLBARS_OUTSIDE_INSETpublic final static intSCROLLBARS_OUTSIDE_OVERLAYpublic final static intSCROLLBAR_POSITION_DEFAULTpublic final static intSCROLLBAR_POSITION_LEFTpublic final static intSCROLLBAR_POSITION_RIGHTpublic final static intSCROLL_AXIS_HORIZONTALpublic final static intSCROLL_AXIS_NONEpublic final static intSCROLL_AXIS_VERTICALpublic final static intSCROLL_CAPTURE_HINT_AUTOpublic final static intSCROLL_CAPTURE_HINT_EXCLUDEpublic final static intSCROLL_CAPTURE_HINT_EXCLUDE_DESCENDANTSpublic final static intSCROLL_CAPTURE_HINT_INCLUDEpublic final static intSCROLL_INDICATOR_BOTTOMpublic final static intSCROLL_INDICATOR_ENDpublic final static intSCROLL_INDICATOR_LEFTpublic final static intSCROLL_INDICATOR_RIGHTpublic final static intSCROLL_INDICATOR_STARTpublic final static intSCROLL_INDICATOR_TOPpublic final static intSOUND_EFFECTS_ENABLEDpublic final static intSTATUS_BAR_HIDDENpublic final static intSTATUS_BAR_VISIBLEpublic final static intSYSTEM_UI_FLAG_FULLSCREENpublic final static intSYSTEM_UI_FLAG_HIDE_NAVIGATIONpublic final static intSYSTEM_UI_FLAG_IMMERSIVEpublic final static intSYSTEM_UI_FLAG_IMMERSIVE_STICKYpublic final static intSYSTEM_UI_FLAG_LAYOUT_FULLSCREENpublic final static intSYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATIONpublic final static intSYSTEM_UI_FLAG_LAYOUT_STABLEpublic final static intSYSTEM_UI_FLAG_LIGHT_NAVIGATION_BARpublic final static intSYSTEM_UI_FLAG_LIGHT_STATUS_BARpublic final static intSYSTEM_UI_FLAG_LOW_PROFILEpublic final static intSYSTEM_UI_FLAG_VISIBLEpublic final static intSYSTEM_UI_LAYOUT_FLAGSpublic final static intTEXT_ALIGNMENT_CENTERpublic final static intTEXT_ALIGNMENT_GRAVITYpublic final static intTEXT_ALIGNMENT_INHERITpublic final static intTEXT_ALIGNMENT_TEXT_ENDpublic final static intTEXT_ALIGNMENT_TEXT_STARTpublic final static intTEXT_ALIGNMENT_VIEW_ENDpublic final static intTEXT_ALIGNMENT_VIEW_STARTpublic final static intTEXT_DIRECTION_ANY_RTLpublic final static intTEXT_DIRECTION_FIRST_STRONGpublic final static intTEXT_DIRECTION_FIRST_STRONG_LTRpublic final static intTEXT_DIRECTION_FIRST_STRONG_RTLpublic final static intTEXT_DIRECTION_INHERITpublic final static intTEXT_DIRECTION_LOCALEpublic final static intTEXT_DIRECTION_LTRpublic final static intTEXT_DIRECTION_RTLpublic final static Property<View, Float>TRANSLATION_Xpublic final static Property<View, Float>TRANSLATION_Ypublic final static Property<View, Float>TRANSLATION_Zpublic final static intVISIBLEpublic final static Property<View, Float>Xpublic final static Property<View, Float>Ypublic final static Property<View, Float>Z
-
Method Summary
Modifier and Type Method Description static POBWebViewcreateInstance(@NonNull() Context context)Creates a new instance of POBWebView with provided content and returns the same. voidsetBaseContext(@NonNull() Context context)Sets / update the context in runtime. booleanonKeyDown(int keyCode, KeyEvent event)View callback method used to identify back press and notify implemented class voidonWindowFocusChanged(boolean hasWindowFocus)View callback method get called on focus changed Notifies it to class which implements onfocusChangedListener voidsetWebViewBackPress(@Nullable() POBWebView.WebViewBackPress webViewBackPress)Method to set WebViewBackPress listener To listen back press on webview, class must register to this listener voidsetOnfocusChangedListener(@Nullable() POBWebView.OnFocusChangedListener onfocusChangedListener)Method to set onfocusChangedListener To listen focus change on WebView -
Methods inherited from class android.webkit.WebView
addJavascriptInterface, autofill, canGoBack, canGoBackOrForward, canGoForward, canZoomIn, canZoomOut, capturePicture, clearCache, clearClientCertPreferences, clearFormData, clearHistory, clearMatches, clearSslPreferences, clearView, computeScroll, copyBackForwardList, createPrintDocumentAdapter, createWebMessageChannel, destroy, disableWebView, dispatchCreateViewTranslationRequest, dispatchKeyEvent, documentHasImages, enableSlowWholeDocumentDraw, evaluateJavascript, findAddress, findAll, findAllAsync, findFocus, findNext, flingScroll, freeMemory, getAccessibilityClassName, getAccessibilityNodeProvider, getCertificate, getContentHeight, getCurrentWebViewPackage, getFavicon, getHandler, getHitTestResult, getHttpAuthUsernamePassword, getOriginalUrl, getProgress, getRendererPriorityWaivedWhenNotVisible, getRendererRequestedPriority, getSafeBrowsingPrivacyPolicyUrl, getScale, getSettings, getTextClassifier, getTitle, getUrl, getWebChromeClient, getWebViewClassLoader, getWebViewClient, getWebViewLooper, getWebViewRenderProcess, getWebViewRenderProcessClient, goBack, goBackOrForward, goForward, invokeZoomPicker, isPrivateBrowsingEnabled, isVisibleToUserForAutofill, loadData, loadDataWithBaseURL, loadUrl, onApplyWindowInsets, onCheckIsTextEditor, onChildViewAdded, onChildViewRemoved, onCreateInputConnection, onCreateVirtualViewTranslationRequests, onDragEvent, onFinishTemporaryDetach, onGenericMotionEvent, onGlobalFocusChanged, onHoverEvent, onKeyMultiple, onKeyUp, onPause, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideVirtualStructure, onResume, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVirtualViewTranslationResponses, overlayHorizontalScrollbar, overlayVerticalScrollbar, pageDown, pageUp, pauseTimers, performLongClick, postUrl, postVisualStateCallback, postWebMessage, reload, removeJavascriptInterface, requestChildRectangleOnScreen, requestFocus, requestFocusNodeHref, requestImageRef, restoreState, resumeTimers, savePassword, saveState, saveWebArchive, setBackgroundColor, setCertificate, setDataDirectorySuffix, setDownloadListener, setFindListener, setHorizontalScrollbarOverlay, setHttpAuthUsernamePassword, setInitialScale, setLayerType, setLayoutParams, setMapTrackballToArrowKeys, setNetworkAvailable, setOverScrollMode, setPictureListener, setRendererPriorityPolicy, setSafeBrowsingWhitelist, setScrollBarStyle, setTextClassifier, setVerticalScrollbarOverlay, setWebChromeClient, setWebContentsDebuggingEnabled, setWebViewClient, setWebViewRenderProcessClient, shouldDelayChildPressedState, showFindDialog, startSafeBrowsing, stopLoading, zoomBy, zoomIn, zoomOut -
Methods inherited from class android.widget.AbsoluteLayout
generateLayoutParams -
Methods inherited from class android.view.ViewGroup
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, bringChildToFront, childDrawableStateChanged, childHasTransientStateChanged, clearChildFocus, clearDisappearingChildren, clearFocus, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchScrollCaptureSearch, dispatchSetActivated, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, endViewTransition, findOnBackInvokedDispatcherForChild, findViewsWithText, focusSearch, focusableViewAvailable, gatherTransparentRegion, getChildAt, getChildCount, getChildMeasureSpec, 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, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, 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, setTouchscreenBlocksFocus, setTransitionGroup, setWindowInsetsAnimationCallback, showContextMenuForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, suppressLayout, updateViewLayout -
Methods inherited from class android.view.View
addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, animate, announceForAccessibility, bringToFront, buildDrawingCache, buildLayer, callOnClick, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, checkInputConnectionProxy, clearAnimation, clearViewTranslationCallback, combineMeasuredStates, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, draw, drawableHotspotChanged, findOnBackInvokedDispatcher, findViewById, findViewWithTag, forceHasOverlappingRendering, forceLayout, generateDisplayHash, generateViewId, 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, getContext, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getHandwritingBoundsOffsetBottom, getHandwritingBoundsOffsetLeft, getHandwritingBoundsOffsetRight, getHandwritingBoundsOffsetTop, 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, getOverlay, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getPreferKeepClearRects, getReceiveContentMimeTypes, getResources, getRevealOnFocusHint, getRight, getRootSurfaceControl, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollCaptureHint, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSystemGestureExclusionRects, getSystemUiVisibility, 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, inflate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityDataSensitive, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isAutoHandwritingEnabled, isClickable, 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, performHapticFeedback, performReceiveContent, playSoundEffect, post, postDelayed, postInvalidate, postInvalidateDelayed, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestUnbufferedDispatch, requireViewById, resetPivot, resolveSize, resolveSizeAndState, 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, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHandwritingBoundsOffsets, 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, setPivotX, setPivotY, setPointerIcon, setPreferKeepClear, setPreferKeepClearRects, setPressed, setRenderEffect, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollBarSize, setScrollCaptureCallback, setScrollCaptureHint, setScrollContainer, setScrollIndicators, setScrollX, setScrollY, setScrollbarFadingEnabled, setSelected, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, 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, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, updateDragShadow, willNotCacheDrawing, willNotDraw -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
createInstance
@Nullable() static POBWebView createInstance(@NonNull() Context context)
Creates a new instance of POBWebView with provided content and returns the same.
- Parameters:
context- Valid context- Returns:
New instance of POBWebView
-
setBaseContext
void setBaseContext(@NonNull() Context context)
Sets / update the context in runtime.
- Parameters:
context- Context instance
-
onKeyDown
boolean onKeyDown(int keyCode, KeyEvent event)
View callback method used to identify back press and notify implemented class
- Parameters:
keyCode- value of keyevent- value of event- Returns:
returns true if back press detected otherwise return default value of keydown
-
onWindowFocusChanged
void onWindowFocusChanged(boolean hasWindowFocus)
View callback method get called on focus changed Notifies it to class which implements onfocusChangedListener
- Parameters:
hasWindowFocus- provides value of focus
-
setWebViewBackPress
void setWebViewBackPress(@Nullable() POBWebView.WebViewBackPress webViewBackPress)
Method to set WebViewBackPress listener To listen back press on webview, class must register to this listener
- Parameters:
webViewBackPress- reference of WebViewBackPress
-
setOnfocusChangedListener
void setOnfocusChangedListener(@Nullable() POBWebView.OnFocusChangedListener onfocusChangedListener)
Method to set onfocusChangedListener To listen focus change on WebView
- Parameters:
onfocusChangedListener- reference of OnFocusChangedListener
-
-
-
-