NativeBridgeController class abstract
Name: NativeBridgeController管理器,实现Bridge功能需要继承 Created by Fitem on 2023/2/1
- Mixed-in types
Constructors
- NativeBridgeController(WebViewController controller)
Properties
-
callMethodMap
→ Map<
String, Function?> -
call method map
no setterinherited
- controller → WebViewController
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → dynamic
-
javascript channel name
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
-
onMessageReceived(
JavaScriptMessage message) → Future< void> -
接收JS消息
override
-
runJavaScript(
String javaScriptString) → void -
执行JS
override
-
runJavaScriptReturningResult(
String javaScriptString) → Future< Object> -
执行JS并返回结果
override
-
sendMessage(
Message message) → Future -
发送JS消息
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited