SubScreenPlugin class abstract

封装方法用于主副屏交互

Constructors

SubScreenPlugin()

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 Properties

checkOverlayPermission → Future<bool>
校验overlay窗口权限
no setter
isMultipleScreen → Future<bool>
返回支付支持双屏
no setter
mainStream → Stream<MethodCall>
no setter
viceStream → Stream<MethodCall>
no setter

Static Methods

doubleScreenCancel() → void
关闭副屏
doubleScreenShow() → void
打开副屏
requestOverlayPermission() → void
请求overlay窗口权限
sendMsgToMainScreen(String method, {Map<String, dynamic>? params}) → Future<void>
给副屏幕调用,发送事件体给主屏
sendMsgToViceScreen(String method, {Map<String, dynamic>? params}) → Future<void>
给主屏幕调用,发送事件体给副屏