X5Sdk class

Constructors

X5Sdk()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

canUseTbsPlayer() Future<bool>
是否能直接使用x5内核播放视频
getCrashInfo() Future<String>
获取x5的日志
init() Future<bool>
加载内核,没有内核会自动下载,加载失败会自动调用系统内核。 不要重复请求。如需要重新加载可重启应用 android 6.0+调用之前需动态请求权限(电话和存储权限)
openFile(String filePath, {String? local, String? style, String? topBarBgColor, String? menuData}) Future<String>
打开本地文件,暂不支持在线文件,可下载后再打开
openVideo(String url, {int screenMode = 102}) Future<void>
screenMode 播放参数,103横屏全屏,104竖屏全屏。默认102
openWebActivity(String url, {String? title, Map<String, String>? headers, InterceptUrlCallBack? callback}) Future<void>
打开简单的x5webview
setDownloadWithoutWifi(bool isDownloadWithoutWifi) Future<bool>
设置是否在非wifi环境下载内核,默认false
setX5SdkListener(X5SdkListener listener) Future<void>
设置内核下载安装事件