android.webkit
Class WebView
java.lang.Object
android.view.View
android.view.ViewGroup
android.widget.AbsoluteLayout
android.webkit.WebView
- All Implemented Interfaces:
- Drawable.Callback, AccessibilityEventSource, KeyEvent.Callback, ViewGroup.OnHierarchyChangeListener, ViewManager, ViewParent, ViewTreeObserver.OnGlobalFocusChangeListener
public class WebView
- extends AbsoluteLayout
- implements ViewTreeObserver.OnGlobalFocusChangeListener, ViewGroup.OnHierarchyChangeListener
| Nested classes/interfaces inherited from class android.view.View |
View.AccessibilityDelegate, View.BaseSavedState, View.DragShadowBuilder, View.MeasureSpec, View.OnAttachStateChangeListener, View.OnClickListener, View.OnCreateContextMenuListener, View.OnDragListener, View.OnFocusChangeListener, View.OnGenericMotionListener, View.OnHoverListener, View.OnKeyListener, View.OnLayoutChangeListener, View.OnLongClickListener, View.OnSystemUiVisibilityChangeListener, View.OnTouchListener |
| Fields inherited from class android.view.View |
ALPHA, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_RESOLVED_DEFAULT, TRANSLATION_X, TRANSLATION_Y, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y |
|
Method Summary |
void |
addJavascriptInterface(Object object,
String name)
|
boolean |
canGoBack()
|
boolean |
canGoBackOrForward(int steps)
|
boolean |
canGoForward()
|
boolean |
canZoomIn()
|
boolean |
canZoomOut()
|
Picture |
capturePicture()
|
void |
clearCache(boolean includeDiskFiles)
|
void |
clearFormData()
|
void |
clearHistory()
|
void |
clearMatches()
|
void |
clearSslPreferences()
|
void |
clearView()
|
protected int |
computeHorizontalScrollOffset()
|
protected int |
computeHorizontalScrollRange()
|
void |
computeScroll()
|
protected int |
computeVerticalScrollExtent()
|
protected int |
computeVerticalScrollOffset()
|
protected int |
computeVerticalScrollRange()
|
WebBackForwardList |
copyBackForwardList()
|
void |
debugDump()
Deprecated. |
void |
destroy()
|
static void |
disablePlatformNotifications()
Deprecated. |
boolean |
dispatchKeyEvent(KeyEvent event)
|
void |
documentHasImages(Message response)
|
void |
emulateShiftHeld()
Deprecated. |
static void |
enablePlatformNotifications()
Deprecated. |
static String |
findAddress(String addr)
|
int |
findAll(String find)
Deprecated. |
void |
findAllAsync(String find)
|
void |
findNext(boolean forward)
|
void |
flingScroll(int vx,
int vy)
|
void |
freeMemory()
|
SslCertificate |
getCertificate()
|
int |
getContentHeight()
|
Bitmap |
getFavicon()
|
WebView.HitTestResult |
getHitTestResult()
|
String[] |
getHttpAuthUsernamePassword(String host,
String realm)
|
String |
getOriginalUrl()
|
int |
getProgress()
|
float |
getScale()
|
WebSettings |
getSettings()
|
String |
getTitle()
|
String |
getUrl()
|
int |
getVisibleTitleHeight()
Deprecated. |
void |
goBack()
|
void |
goBackOrForward(int steps)
|
void |
goForward()
|
void |
invokeZoomPicker()
|
boolean |
isPrivateBrowsingEnabled()
|
void |
loadData(String data,
String mimeType,
String encoding)
|
void |
loadDataWithBaseURL(String baseUrl,
String data,
String mimeType,
String encoding,
String historyUrl)
|
void |
loadUrl(String url)
|
void |
loadUrl(String url,
Map<String,String> additionalHttpHeaders)
|
protected void |
onAttachedToWindow()
|
void |
onChildViewAdded(View parent,
View child)
Deprecated. |
void |
onChildViewRemoved(View p,
View child)
Deprecated. |
protected void |
onConfigurationChanged(Configuration newConfig)
|
InputConnection |
onCreateInputConnection(EditorInfo outAttrs)
|
protected void |
onDetachedFromWindow()
|
protected void |
onDraw(Canvas canvas)
|
protected void |
onFocusChanged(boolean focused,
int direction,
Rect previouslyFocusedRect)
|
boolean |
onGenericMotionEvent(MotionEvent event)
|
void |
onGlobalFocusChanged(View oldFocus,
View newFocus)
Deprecated. |
boolean |
onHoverEvent(MotionEvent event)
|
void |
onInitializeAccessibilityEvent(AccessibilityEvent event)
|
void |
onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info)
|
boolean |
onKeyDown(int keyCode,
KeyEvent event)
|
boolean |
onKeyMultiple(int keyCode,
int repeatCount,
KeyEvent event)
|
boolean |
onKeyUp(int keyCode,
KeyEvent event)
|
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
Deprecated. |
protected void |
onOverScrolled(int scrollX,
int scrollY,
boolean clampedX,
boolean clampedY)
|
void |
onPause()
|
void |
onResume()
|
protected void |
onScrollChanged(int l,
int t,
int oldl,
int oldt)
|
protected void |
onSizeChanged(int w,
int h,
int ow,
int oh)
|
boolean |
onTouchEvent(MotionEvent event)
|
boolean |
onTrackballEvent(MotionEvent event)
|
protected void |
onVisibilityChanged(View changedView,
int visibility)
|
void |
onWindowFocusChanged(boolean hasWindowFocus)
|
protected void |
onWindowVisibilityChanged(int visibility)
|
boolean |
overlayHorizontalScrollbar()
|
boolean |
overlayVerticalScrollbar()
|
boolean |
pageDown(boolean bottom)
|
boolean |
pageUp(boolean top)
|
void |
pauseTimers()
|
boolean |
performAccessibilityAction(int action,
Bundle arguments)
|
boolean |
performLongClick()
|
void |
postUrl(String url,
byte[] postData)
|
void |
reload()
|
void |
removeJavascriptInterface(String name)
|
boolean |
requestChildRectangleOnScreen(View child,
Rect rect,
boolean immediate)
|
boolean |
requestFocus(int direction,
Rect previouslyFocusedRect)
|
void |
requestFocusNodeHref(Message hrefMsg)
|
void |
requestImageRef(Message msg)
|
boolean |
restorePicture(Bundle b,
File src)
Deprecated. |
WebBackForwardList |
restoreState(Bundle inState)
|
void |
resumeTimers()
|
void |
savePassword(String host,
String username,
String password)
|
boolean |
savePicture(Bundle b,
File dest)
Deprecated. |
WebBackForwardList |
saveState(Bundle outState)
|
void |
saveWebArchive(String filename)
|
void |
saveWebArchive(String basename,
boolean autoname,
ValueCallback<String> callback)
|
void |
setBackgroundColor(int color)
|
void |
setCertificate(SslCertificate certificate)
|
void |
setDownloadListener(DownloadListener listener)
|
void |
setFindListener(WebView.FindListener listener)
|
void |
setHorizontalScrollbarOverlay(boolean overlay)
|
void |
setHttpAuthUsernamePassword(String host,
String realm,
String username,
String password)
|
void |
setInitialScale(int scaleInPercent)
|
void |
setLayerType(int layerType,
Paint paint)
|
void |
setLayoutParams(ViewGroup.LayoutParams params)
|
void |
setMapTrackballToArrowKeys(boolean setMap)
|
void |
setNetworkAvailable(boolean networkUp)
|
void |
setOverScrollMode(int mode)
|
void |
setPictureListener(WebView.PictureListener listener)
Deprecated. |
void |
setScrollBarStyle(int style)
|
void |
setVerticalScrollbarOverlay(boolean overlay)
|
void |
setWebChromeClient(WebChromeClient client)
|
void |
setWebViewClient(WebViewClient client)
|
boolean |
shouldDelayChildPressedState()
Deprecated. |
boolean |
showFindDialog(String text,
boolean showIme)
|
void |
stopLoading()
|
boolean |
zoomIn()
|
boolean |
zoomOut()
|
| Methods inherited from class android.view.ViewGroup |
addChildrenForAccessibility, addFocusables, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, childDrawableStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawableStateChanged, drawChild, endViewTransition, findFocus, findViewsWithText, fitSystemWindows, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutTransition, getPersistentDrawingCache, hasFocus, hasFocusable, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isMotionEventSplittingEnabled, jumpDrawablesToCurrentState, layout, measureChild, measureChildren, measureChildWithMargins, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAnimationEnd, onAnimationStart, onCreateDrawableState, onInterceptHoverEvent, onInterceptTouchEvent, onRequestFocusInDescendants, onRequestSendAccessibilityEvent, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestDisallowInterceptTouchEvent, requestSendAccessibilityEvent, requestTransparentRegion, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPadding, setPersistentDrawingCache, setStaticTransformationsEnabled, showContextMenuForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayout |
| Methods inherited from class android.view.View |
addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelLongPress, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeHorizontalScrollExtent, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchPopulateAccessibilityEvent, draw, findViewById, findViewWithTag, focusSearch, forceLayout, getAccessibilityNodeProvider, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLayerType, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOverScrollMode, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getResources, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTranslationX, getTranslationY, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, hasOnClickListeners, hasOverlappingRendering, hasTransientState, hasWindowFocus, inflate, initializeFadingEdge, initializeScrollbars, invalidate, invalidate, invalidate, invalidateDrawable, isActivated, isClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isInEditMode, isInTouchMode, isLayoutRequested, isLongClickable, isOpaque, isPaddingOffsetRequired, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onCheckIsTextEditor, onCreateContextMenu, onDisplayHint, onDragEvent, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onHoverChanged, onKeyLongPress, onKeyPreIme, onKeyShortcut, onPopulateAccessibilityEvent, onRestoreInstanceState, onSaveInstanceState, onScreenStateChanged, onSetAlpha, onStartTemporaryDetach, onWindowSystemUiVisibilityChanged, overScrollBy, performClick, performHapticFeedback, performHapticFeedback, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setActivated, setAlpha, setAnimation, setBackground, setBackgroundDrawable, setBackgroundResource, setBottom, setCameraDistance, setClickable, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollContainer, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setSystemUiVisibility, setTag, setTag, setTop, setTouchDelegate, setTranslationX, setTranslationY, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, showContextMenu, startActionMode, startAnimation, startDrag, unscheduleDrawable, unscheduleDrawable, verifyDrawable, willNotCacheDrawing, willNotDraw |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCHEME_TEL
public static final String SCHEME_TEL
- See Also:
- Constant Field Values
SCHEME_MAILTO
public static final String SCHEME_MAILTO
- See Also:
- Constant Field Values
SCHEME_GEO
public static final String SCHEME_GEO
- See Also:
- Constant Field Values
WebView
public WebView(Context context)
WebView
public WebView(Context context,
AttributeSet attrs)
WebView
public WebView(Context context,
AttributeSet attrs,
int defStyle)
WebView
public WebView(Context context,
AttributeSet attrs,
int defStyle,
boolean privateBrowsing)
setHorizontalScrollbarOverlay
public void setHorizontalScrollbarOverlay(boolean overlay)
setVerticalScrollbarOverlay
public void setVerticalScrollbarOverlay(boolean overlay)
overlayHorizontalScrollbar
public boolean overlayHorizontalScrollbar()
overlayVerticalScrollbar
public boolean overlayVerticalScrollbar()
getVisibleTitleHeight
@Deprecated
public int getVisibleTitleHeight()
- Deprecated.
getCertificate
public SslCertificate getCertificate()
setCertificate
public void setCertificate(SslCertificate certificate)
savePassword
public void savePassword(String host,
String username,
String password)
setHttpAuthUsernamePassword
public void setHttpAuthUsernamePassword(String host,
String realm,
String username,
String password)
getHttpAuthUsernamePassword
public String[] getHttpAuthUsernamePassword(String host,
String realm)
destroy
public void destroy()
enablePlatformNotifications
@Deprecated
public static void enablePlatformNotifications()
- Deprecated.
disablePlatformNotifications
@Deprecated
public static void disablePlatformNotifications()
- Deprecated.
setNetworkAvailable
public void setNetworkAvailable(boolean networkUp)
saveState
public WebBackForwardList saveState(Bundle outState)
savePicture
@Deprecated
public boolean savePicture(Bundle b,
File dest)
- Deprecated.
restorePicture
@Deprecated
public boolean restorePicture(Bundle b,
File src)
- Deprecated.
restoreState
public WebBackForwardList restoreState(Bundle inState)
loadUrl
public void loadUrl(String url,
Map<String,String> additionalHttpHeaders)
loadUrl
public void loadUrl(String url)
postUrl
public void postUrl(String url,
byte[] postData)
loadData
public void loadData(String data,
String mimeType,
String encoding)
loadDataWithBaseURL
public void loadDataWithBaseURL(String baseUrl,
String data,
String mimeType,
String encoding,
String historyUrl)
saveWebArchive
public void saveWebArchive(String filename)
saveWebArchive
public void saveWebArchive(String basename,
boolean autoname,
ValueCallback<String> callback)
stopLoading
public void stopLoading()
reload
public void reload()
canGoBack
public boolean canGoBack()
goBack
public void goBack()
canGoForward
public boolean canGoForward()
goForward
public void goForward()
canGoBackOrForward
public boolean canGoBackOrForward(int steps)
goBackOrForward
public void goBackOrForward(int steps)
isPrivateBrowsingEnabled
public boolean isPrivateBrowsingEnabled()
pageUp
public boolean pageUp(boolean top)
pageDown
public boolean pageDown(boolean bottom)
clearView
public void clearView()
capturePicture
public Picture capturePicture()
getScale
public float getScale()
setInitialScale
public void setInitialScale(int scaleInPercent)
invokeZoomPicker
public void invokeZoomPicker()
getHitTestResult
public WebView.HitTestResult getHitTestResult()
requestFocusNodeHref
public void requestFocusNodeHref(Message hrefMsg)
requestImageRef
public void requestImageRef(Message msg)
getUrl
public String getUrl()
getOriginalUrl
public String getOriginalUrl()
getTitle
public String getTitle()
getFavicon
public Bitmap getFavicon()
getProgress
public int getProgress()
getContentHeight
public int getContentHeight()
pauseTimers
public void pauseTimers()
resumeTimers
public void resumeTimers()
onPause
public void onPause()
onResume
public void onResume()
freeMemory
public void freeMemory()
clearCache
public void clearCache(boolean includeDiskFiles)
clearFormData
public void clearFormData()
clearHistory
public void clearHistory()
clearSslPreferences
public void clearSslPreferences()
copyBackForwardList
public WebBackForwardList copyBackForwardList()
setFindListener
public void setFindListener(WebView.FindListener listener)
findNext
public void findNext(boolean forward)
findAll
@Deprecated
public int findAll(String find)
- Deprecated.
findAllAsync
public void findAllAsync(String find)
showFindDialog
public boolean showFindDialog(String text,
boolean showIme)
findAddress
public static String findAddress(String addr)
clearMatches
public void clearMatches()
documentHasImages
public void documentHasImages(Message response)
setWebViewClient
public void setWebViewClient(WebViewClient client)
setDownloadListener
public void setDownloadListener(DownloadListener listener)
setWebChromeClient
public void setWebChromeClient(WebChromeClient client)
setPictureListener
@Deprecated
public void setPictureListener(WebView.PictureListener listener)
- Deprecated.
addJavascriptInterface
public void addJavascriptInterface(Object object,
String name)
removeJavascriptInterface
public void removeJavascriptInterface(String name)
getSettings
public WebSettings getSettings()
emulateShiftHeld
@Deprecated
public void emulateShiftHeld()
- Deprecated.
onChildViewAdded
@Deprecated
public void onChildViewAdded(View parent,
View child)
- Deprecated.
- Specified by:
onChildViewAdded in interface ViewGroup.OnHierarchyChangeListener
onChildViewRemoved
@Deprecated
public void onChildViewRemoved(View p,
View child)
- Deprecated.
- Specified by:
onChildViewRemoved in interface ViewGroup.OnHierarchyChangeListener
onGlobalFocusChanged
@Deprecated
public void onGlobalFocusChanged(View oldFocus,
View newFocus)
- Deprecated.
- Specified by:
onGlobalFocusChanged in interface ViewTreeObserver.OnGlobalFocusChangeListener
setMapTrackballToArrowKeys
public void setMapTrackballToArrowKeys(boolean setMap)
flingScroll
public void flingScroll(int vx,
int vy)
canZoomIn
public boolean canZoomIn()
canZoomOut
public boolean canZoomOut()
zoomIn
public boolean zoomIn()
zoomOut
public boolean zoomOut()
debugDump
@Deprecated
public void debugDump()
- Deprecated.
onAttachedToWindow
protected void onAttachedToWindow()
- Overrides:
onAttachedToWindow in class View
onDetachedFromWindow
protected void onDetachedFromWindow()
- Overrides:
onDetachedFromWindow in class View
setLayoutParams
public void setLayoutParams(ViewGroup.LayoutParams params)
- Overrides:
setLayoutParams in class View
setOverScrollMode
public void setOverScrollMode(int mode)
- Overrides:
setOverScrollMode in class View
setScrollBarStyle
public void setScrollBarStyle(int style)
- Overrides:
setScrollBarStyle in class View
computeHorizontalScrollRange
protected int computeHorizontalScrollRange()
- Overrides:
computeHorizontalScrollRange in class View
computeHorizontalScrollOffset
protected int computeHorizontalScrollOffset()
- Overrides:
computeHorizontalScrollOffset in class View
computeVerticalScrollRange
protected int computeVerticalScrollRange()
- Overrides:
computeVerticalScrollRange in class View
computeVerticalScrollOffset
protected int computeVerticalScrollOffset()
- Overrides:
computeVerticalScrollOffset in class View
computeVerticalScrollExtent
protected int computeVerticalScrollExtent()
- Overrides:
computeVerticalScrollExtent in class View
computeScroll
public void computeScroll()
- Overrides:
computeScroll in class View
onHoverEvent
public boolean onHoverEvent(MotionEvent event)
- Overrides:
onHoverEvent in class View
onTouchEvent
public boolean onTouchEvent(MotionEvent event)
- Overrides:
onTouchEvent in class View
onGenericMotionEvent
public boolean onGenericMotionEvent(MotionEvent event)
- Overrides:
onGenericMotionEvent in class View
onTrackballEvent
public boolean onTrackballEvent(MotionEvent event)
- Overrides:
onTrackballEvent in class View
onKeyDown
public boolean onKeyDown(int keyCode,
KeyEvent event)
- Specified by:
onKeyDown in interface KeyEvent.Callback- Overrides:
onKeyDown in class View
onKeyUp
public boolean onKeyUp(int keyCode,
KeyEvent event)
- Specified by:
onKeyUp in interface KeyEvent.Callback- Overrides:
onKeyUp in class View
onKeyMultiple
public boolean onKeyMultiple(int keyCode,
int repeatCount,
KeyEvent event)
- Specified by:
onKeyMultiple in interface KeyEvent.Callback- Overrides:
onKeyMultiple in class View
shouldDelayChildPressedState
@Deprecated
public boolean shouldDelayChildPressedState()
- Deprecated.
- Overrides:
shouldDelayChildPressedState in class AbsoluteLayout
onInitializeAccessibilityNodeInfo
public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info)
- Overrides:
onInitializeAccessibilityNodeInfo in class View
onInitializeAccessibilityEvent
public void onInitializeAccessibilityEvent(AccessibilityEvent event)
- Overrides:
onInitializeAccessibilityEvent in class View
performAccessibilityAction
public boolean performAccessibilityAction(int action,
Bundle arguments)
- Overrides:
performAccessibilityAction in class View
onOverScrolled
protected void onOverScrolled(int scrollX,
int scrollY,
boolean clampedX,
boolean clampedY)
- Overrides:
onOverScrolled in class View
onWindowVisibilityChanged
protected void onWindowVisibilityChanged(int visibility)
- Overrides:
onWindowVisibilityChanged in class View
onDraw
protected void onDraw(Canvas canvas)
- Overrides:
onDraw in class View
performLongClick
public boolean performLongClick()
- Overrides:
performLongClick in class View
onConfigurationChanged
protected void onConfigurationChanged(Configuration newConfig)
- Overrides:
onConfigurationChanged in class View
onCreateInputConnection
public InputConnection onCreateInputConnection(EditorInfo outAttrs)
- Overrides:
onCreateInputConnection in class View
onVisibilityChanged
protected void onVisibilityChanged(View changedView,
int visibility)
- Overrides:
onVisibilityChanged in class View
onWindowFocusChanged
public void onWindowFocusChanged(boolean hasWindowFocus)
- Overrides:
onWindowFocusChanged in class View
onFocusChanged
protected void onFocusChanged(boolean focused,
int direction,
Rect previouslyFocusedRect)
- Overrides:
onFocusChanged in class View
onSizeChanged
protected void onSizeChanged(int w,
int h,
int ow,
int oh)
- Overrides:
onSizeChanged in class View
onScrollChanged
protected void onScrollChanged(int l,
int t,
int oldl,
int oldt)
- Overrides:
onScrollChanged in class View
dispatchKeyEvent
public boolean dispatchKeyEvent(KeyEvent event)
- Overrides:
dispatchKeyEvent in class ViewGroup
requestFocus
public boolean requestFocus(int direction,
Rect previouslyFocusedRect)
- Overrides:
requestFocus in class ViewGroup
onMeasure
@Deprecated
protected void onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
- Deprecated.
- Overrides:
onMeasure in class AbsoluteLayout
requestChildRectangleOnScreen
public boolean requestChildRectangleOnScreen(View child,
Rect rect,
boolean immediate)
- Specified by:
requestChildRectangleOnScreen in interface ViewParent- Overrides:
requestChildRectangleOnScreen in class ViewGroup
setBackgroundColor
public void setBackgroundColor(int color)
- Overrides:
setBackgroundColor in class View
setLayerType
public void setLayerType(int layerType,
Paint paint)
- Overrides:
setLayerType in class View
Copyright © 2008-2012. All Rights Reserved.