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+调用之前需动态请求权限(电话和存储权限)
openVideo(String url, {int screenMode = 104}) Future<void>
screenMode 播放参数, 102竖屏全屏(第一次点击全屏无效) 103横屏全屏(暂停后会报错), 104竖屏全屏(默认) 105竖屏全屏(双击后才会出现面板) 默认104
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>
设置内核下载安装事件