VoltronBridgeManager class
voltron外层业务逻辑对c++调用逻辑的bridge封装
- Implemented types
Constructors
- VoltronBridgeManager(EngineContext context, VoltronBundleLoader? coreBundleLoader, int groupId, int id, {VoltronThirdPartyAdapter? thirdPartyAdapter, int bridgeType = kBridgeTypeNormal, bool isDevModule = false, String debugServerHost = ''})
Properties
- coreBundleLoader → VoltronBundleLoader?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDevModule → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bindDomAndRender(
{required int domInstanceId, required int engineId, required int renderManagerId}) → void -
callJavaScriptModule(
String moduleName, String methodName, Object params) → Future -
callJsFunction(
Object params, String action) → Future -
callNatives(
String moduleName, String moduleFunc, String callId, Uint8List paramsList, bool bridgeParseJson) → void -
connectRootViewAndRuntime(
int engineId, int rootId) → void -
destroy(
) → void -
override
-
destroyBridge(
DestoryBridgeCallback< bool> callback, bool isReload) → Future -
execJsCallback(
Object params) → Future -
getGlobalConfigs(
) → String -
initBridge(
Callback callback) → Future -
initCodeCacheDir(
) → Future -
loadInstance(
String name, int id, VoltronMap? params) → Future -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDestroy(
) → void -
pauseInstance(
int id) → Future -
reportException(
String exception, String stackTrace) → void -
resumeInstance(
int id) → Future -
runBundle(
int id, VoltronBundleLoader? loader, ModuleListener? moduleListener, RootWidgetViewModel? rootViewModel) → Future -
runScriptFromUri(
String uri, bool canUseCodeCache, String codeCacheTag, CommonCallback callback) → Future< bool> -
toString(
) → String -
A string representation of this object.
inherited
-
unloadInstance(
int id) → Future
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
bridgeMap
↔ HashMap<
int, VoltronBridgeManager> -
getter/setter pair
- sCodeCacheRootDir ↔ String?
-
getter/setter pair
Constants
- kBridgeTypeNormal → const int
- kBridgeTypeRemoteDebug → const int
- kBridgeTypeSingleThread → const int
- kDefaultLocalHost → const String