public class

ProxyWebChromeClientExtension

extends Object
implements IX5WebChromeClientExtension
java.lang.Object
   ↳ com.tencent.smtt.export.external.extension.proxy.ProxyWebChromeClientExtension

Class Overview

为了避免app在每次更新sdk后都遇到编译错误,在设置IX5WebChromeClientExtension时(setWebChromeClientExtension(IX5WebChromeClientExtension)) 需要创建ProxyWebChromeClientExtension对象并重写需要的方法,不要直接利用接口IX5WebChromeClientExtension构建对象, 利用接口构建对象会造成重写全部方法且后续接口增加会造成编译不过的问题

Summary

Fields
protected IX5WebChromeClientExtension mWebChromeClient
Public Constructors
ProxyWebChromeClientExtension()
Public Methods
void onAllMetaDataFinished(IX5WebViewExtension view, HashMap<String, String> hmMeta)
页面加载全部meta信息后的回调
void onBackforwardFinished(int arg1)
页面前进后退完成
boolean onPermissionRequest(String origin, long resources, MediaAccessPermissionsCallback callback)
Meida Access Permission Callback.
boolean onSavePassword(String schemePlusHost, String username, String password, boolean isReplace, Message resumeMsg)
void openFileChooser(ValueCallback<Uri[]> uploadFile, String acceptType, String captureType)
文件选择回调
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.tencent.smtt.export.external.extension.interfaces.IX5WebChromeClientExtension

Fields

protected IX5WebChromeClientExtension mWebChromeClient

Public Constructors

public ProxyWebChromeClientExtension ()

Public Methods

public void onAllMetaDataFinished (IX5WebViewExtension view, HashMap<String, String> hmMeta)

页面加载全部meta信息后的回调

Parameters
view webview
hmMeta meta信息map

public void onBackforwardFinished (int arg1)

页面前进后退完成

Parameters
arg1 该参数暂时没有作用

public boolean onPermissionRequest (String origin, long resources, MediaAccessPermissionsCallback callback)

Meida Access Permission Callback. (resources & MediaAccessPermissionsCallback.BITMASK_RESOURCE_VIDEO_CAPTURE) != 0 request for camera (resources & MediaAccessPermissionsCallback.BITMASK_RESOURCE_AUDIO_CAPTURE) != 0 request for audio

Parameters
origin the origin
resources the resources
callback callback MediaAccessPermissionsCallback

public boolean onSavePassword (String schemePlusHost, String username, String password, boolean isReplace, Message resumeMsg)

public void openFileChooser (ValueCallback<Uri[]> uploadFile, String acceptType, String captureType)

文件选择回调

Parameters
uploadFile app选择文件后回调到内核的callback.
acceptType 接收的文件类型
captureType capture的文件类型