public interface

IX5WebChromeClientExtension

com.tencent.smtt.export.external.extension.interfaces.IX5WebChromeClientExtension
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
abstract void onAllMetaDataFinished(IX5WebViewExtension view, HashMap<String, String> hmMeta)
页面加载全部meta信息后的回调
abstract void onBackforwardFinished(int arg1)
页面前进后退完成
abstract boolean onPermissionRequest(String origin, long resources, MediaAccessPermissionsCallback callback)
Meida Access Permission Callback.
abstract boolean onSavePassword(ValueCallback<String> callback, String schemePlusHost, String username, String password, String nameElement, String passwordElement, boolean isReplace)
保存密码回调
abstract void openFileChooser(ValueCallback<Uri[]> uploadFile, String acceptType, String captureType)
文件选择回调

Public Methods

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

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

Parameters
view webview
hmMeta meta信息map

public abstract void onBackforwardFinished (int arg1)

页面前进后退完成

Parameters
arg1 该参数暂时没有作用

public abstract 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 abstract boolean onSavePassword (ValueCallback<String> callback, String schemePlusHost, String username, String password, String nameElement, String passwordElement, boolean isReplace)

保存密码回调

Parameters
callback 业务处理后callback到内核的回调
schemePlusHost the schemePlusHost
username 用户名
password 密码
nameElement 用户名元素id
passwordElement 密码框元素id
isReplace 是否要替换,true 内核已记录了对应元素信息; false 内核未记录对应元素信息

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

文件选择回调

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