bridge
library
Functions
-
allocateNewBindingObject()
→ Pointer<NativeBindingObject>
-
-
allocateNewPage(bool sync, double newContextId, int syncBufferSize)
→ Future<void>
-
-
clearNativeProfileData()
→ void
-
-
clearUICommand(double contextId)
→ void
-
-
collectNativeProfileData()
→ String
-
-
createScreen(double width, double height)
→ Pointer<Void>
-
-
debugPrintGumboNodeTree(Pointer<NativeGumboNode> nodePtr, [int indent = 0])
→ void
-
-
disposePage(bool isSync, double contextId)
→ FutureOr<void>
-
-
doubleToInt64(double value)
→ int
-
-
doubleToUint64(double value)
→ int
-
-
dumpQuickjsByteCode(double contextId, Uint8List code, {String? url, EvaluateOpItem? profileOp})
→ Future<Uint8List>
-
-
emitModuleEvent(double contextId, String moduleName, Event? event, )
→ dynamic
-
-
evaluateQuickjsByteCode(double contextId, Uint8List bytes, {EvaluateOpItem? profileOp})
→ Future<bool>
-
-
evaluateScripts(double contextId, Uint8List codeBytes, {String? url, String? cacheKey, int line = 0, EvaluateOpItem? profileOp})
→ Future<bool>
-
-
execUICommands(WebFViewController view, List<UICommand> commands)
→ void
-
-
flushUICommand(WebFViewController view, Pointer<NativeBindingObject> selfPointer)
→ void
-
-
flushUICommandWithContextId(double contextId, Pointer<NativeBindingObject> selfPointer)
→ void
-
-
freeNativeString(Pointer<NativeString> pointer)
→ void
-
-
freeSVGResult(GumboOutput gumboOutput)
→ void
-
-
fromNativeValue(WebFViewController view, Pointer<NativeValue> nativeValue)
→ dynamic
-
-
getAllocatedPage(double contextId)
→ Pointer<Void>?
-
-
getWebFInfo()
→ WebFInfo
-
-
handleEvaluateQuickjsByteCodeResult(Object handle, int result)
→ void
-
-
handleEvaluateScriptsResult(Object handle, int result)
→ void
-
-
initBridge(WebFViewController view, WebFThread runningThread)
→ FutureOr<double>
-
Init bridge
-
initDartDynamicLinking()
→ void
-
-
initDartIsolateContext(List<int> dartMethods)
→ Pointer<Void>
-
-
invokeModule(Pointer<Void> callbackContext, WebFController controller, String moduleName, String method, dynamic params, DartAsyncModuleCallback callback, {BindingOpItem? profileOp})
→ dynamic
-
-
invokeModuleEvent(double contextId, String moduleName, Event? event, )
→ dynamic
-
-
isJSRunningInDedicatedThread(double contextId)
→ bool
-
-
isJSThreadBlocked(double contextId)
→ bool
-
-
makeDartMethodsData()
→ List<int>
-
-
makeNativeValueArguments(BindingObject ownerBindingObject, List args)
→ Pointer<NativeValue>
-
-
nativeStringToString(Pointer<NativeString> pointer)
→ String
-
-
nativeUICommandToDart(List<int> rawMemory, int commandLength, double contextId)
→ List<UICommand>
-
-
newPageId()
→ int
-
-
parseHTML(double contextId, Uint8List codeBytes, {EvaluateOpItem? profileOp})
→ Future<void>
-
-
parseSVGResult(String code)
→ GumboOutput
-
-
readNativeUICommandMemory(double contextId)
→ _NativeCommandData
-
-
registerPluginByteCode(Uint8List bytecode, String name)
→ void
-
-
requestExecuteCallback(dynamic message)
→ void
-
-
stringToNativeString(String string)
→ Pointer<NativeString>
-
-
toNativeValue(Pointer<NativeValue> target, dynamic value, [BindingObject? ownerBindingObject])
→ void
-
-
uint16ToString(Pointer<Uint16> pointer, int length)
→ String
-
-
uInt64ToDouble(int value)
→ double
-
-
uint8ListToPointer(Uint8List data)
→ Pointer<Uint8>
-
-
waitingSyncTaskComplete(double contextId)
→ FutureOr<void>
-
Typedefs
-
AnonymousNativeFunction
= dynamic Function(List args)
-
-
AsyncAnonymousNativeFunction
= Future Function(List args)
-
-
BindingCallFunc
= dynamic Function(BindingObject bindingObject, List args, {BindingOpItem? profileOp})
-
-
DartAllocateNewPage
= void Function(double, int, Pointer<Void>, Object object, Pointer<NativeFunction<HandleAllocateNewPageResult>> handle_result)
-
-
DartAllocateNewPageSync
= Pointer<Void> Function(double, Pointer<Void>)
-
-
DartAsyncAnonymousFunctionCallback
= void Function(Pointer<Void> callbackContext, Pointer<NativeValue> nativeValue, double contextId, Pointer<Utf8> errmsg)
-
-
DartAsyncBlobCallback
= void Function(Pointer<Void> callbackContext, double contextId, Pointer<Utf8>, Pointer<Uint8>, int)
-
-
DartAsyncCallback
= void Function(Pointer<Void> callbackContext, double contextId, Pointer<Utf8> errmsg)
-
-
DartAsyncModuleCallback
= Pointer<NativeValue> Function(Pointer<Void> callbackContext, double contextId, Pointer<Utf8> errmsg, Pointer<NativeValue> ptr, Object context, Pointer<NativeFunction<NativeHandleInvokeModuleResult>> handleResult)
-
-
DartClearNativeProfileData
= void Function(Pointer<Void> pagePtr)
-
-
DartClearUICommandItems
= void Function(Pointer<Void>)
-
-
DartCollectNativeProfileData
= void Function(Pointer<Void> pagePtr, Pointer<Pointer<Utf8>> data, Pointer<Uint32> len)
-
-
DartCreateBindingObject
= void Function(double contextId, Pointer<NativeBindingObject> nativeBindingObject, int type, Pointer<NativeValue> args, int argc)
-
-
DartCreateScreen
= Pointer<Void> Function(double, double)
-
-
DartDispatchEvent
= int Function(double contextId, Pointer<NativeBindingObject> nativeBindingObject, Pointer<NativeString> eventType, Pointer<Void> nativeEvent, int isCustomEvent)
-
-
DartDisposePage
= void Function(double, Pointer<Void>, Pointer<Void> page, Object context, Pointer<NativeFunction<HandleDisposePageResult>> resultCallback)
-
-
DartDisposePageSync
= void Function(double, Pointer<Void>, Pointer<Void> page)
-
-
DartDumpQuickjsByteCode
= void Function(Pointer<Void>, int profileId, Pointer<Uint8> code, int code_len, Pointer<Pointer<Uint8>> parsedBytecodes, Pointer<Uint64> bytecodeLen, Pointer<Utf8> url, Object context, Pointer<NativeFunction<NativeDumpQuickjsByteCodeResultCallback>> resultCallback)
-
-
DartEvaluateQuickjsByteCode
= void Function(Pointer<Void>, Pointer<Uint8> bytes, int byteLen, int profileId, Object object, Pointer<NativeFunction<NativeEvaluateQuickjsByteCodeCallback>> callback)
-
-
DartEvaluateScripts
= void Function(Pointer<Void>, Pointer<Uint8> code, int code_len, Pointer<Pointer<Uint8>> parsedBytecodes, Pointer<Uint64> bytecodeLen, Pointer<Utf8> url, int startLine, int profileId, Object object, Pointer<NativeFunction<NativeEvaluateJavaScriptCallback>> resultCallback)
-
-
DartFlushUICommand
= void Function(double contextId, Pointer<NativeBindingObject> selfPointer)
-
-
DartFreeSVGResult
= void Function(Pointer<NativeGumboOutput> ptr)
-
-
DartGetUICommandItems
= Pointer<Uint64> Function(Pointer<Void>)
-
-
DartGetUICommandItemSize
= int Function(Pointer<Void>)
-
-
DartGetUICommandKindFlags
= int Function(Pointer<Void>)
-
-
DartGetWebFInfo
= Pointer<NativeWebFInfo> Function()
-
-
DartInitDartDynamicLinking
= void Function(Pointer<Void> data)
-
-
DartInitDartIsolateContext
= Pointer<Void> Function(int sendPort, Pointer<Uint64> dartMethods, int methodsLength, int enableProfile)
-
-
DartInvokeBindingMethodsFromDart
= void Function(Pointer<NativeBindingObject> binding_object, int profileId, Pointer<NativeValue> method, int argc, Pointer<NativeValue> argv, Object bindingDartObject, Pointer<NativeFunction<NativeInvokeResultCallback>> result_callback)
-
-
DartInvokeEventListener
= void Function(Pointer<Void>, Pointer<NativeString>, Pointer<Utf8> eventType, Pointer<Void> nativeEvent, Pointer<NativeValue>, Object object, Pointer<NativeFunction<NativeInvokeModuleCallback>> returnCallback)
-
-
DartIsJSThreadBlocked
= int Function(Pointer<Void>, double)
-
-
DartNewPageId
= int Function()
-
-
DartOnDartContextFinalized
= void Function(Pointer<Void> data)
-
-
DartParseHTML
= void Function(Pointer<Void>, Pointer<Uint8> code, int length, int profileId, Object context, Pointer<NativeFunction<NativeParseHTMLCallback>> result_callback)
-
-
DartParseSVGResult
= Pointer<NativeGumboOutput> Function(Pointer<Utf8> code, int length)
-
-
DartRAFAsyncCallback
= void Function(Pointer<Void>, double contextId, double data, Pointer<Utf8> errmsg)
-
-
DartRegisterPluginByteCode
= void Function(Pointer<Uint8> bytes, int length, Pointer<Utf8> pluginName)
-
-
HandleAllocateNewPageResult
= Void Function(Handle object, Pointer<Void> page)
-
-
HandleDisposePageResult
= Void Function(Handle context)
-
-
InvokeBindingMethodsFromDart
= Void Function(Pointer<NativeBindingObject> binding_object, Int64 profileId, Pointer<NativeValue> method, Int32 argc, Pointer<NativeValue> argv, Handle bindingDartObject, Pointer<NativeFunction<NativeInvokeResultCallback>> result_callback)
-
-
InvokeBindingsMethodsFromNative
= Void Function(Double contextId, Int64 profileId, Pointer<NativeBindingObject> binding_object, Pointer<NativeValue> return_value, Pointer<NativeValue> method, Int32 argc, Pointer<NativeValue> argv)
-
-
NativeAllocateNewPage
= Void Function(Double, Int32, Pointer<Void>, Handle object, Pointer<NativeFunction<HandleAllocateNewPageResult>> handle_result)
-
-
NativeAllocateNewPageSync
= Pointer<Void> Function(Double, Pointer<Void>)
-
-
NativeAsyncAnonymousFunctionCallback
= Void Function(Pointer<Void> callbackContext, Pointer<NativeValue> nativeValue, Double contextId, Pointer<Utf8> errmsg)
-
-
NativeAsyncBlobCallback
= Void Function(Pointer<Void> callbackContext, Double contextId, Pointer<Utf8>, Pointer<Uint8>, Int32)
-
-
NativeAsyncCallback
= Void Function(Pointer<Void> callbackContext, Double contextId, Pointer<Utf8> errmsg)
-
-
NativeAsyncModuleCallback
= Pointer<NativeValue> Function(Pointer<Void> callbackContext, Double contextId, Pointer<Utf8> errmsg, Pointer<NativeValue> ptr, Handle context, Pointer<NativeFunction<NativeHandleInvokeModuleResult>> handleResult)
-
-
NativeCancelAnimationFrame
= Void Function(Double contextId, Int32 id)
-
-
NativeClearNativeProfileData
= Void Function(Pointer<Void> pagePtr)
-
-
NativeClearTimeout
= Void Function(Double contextId, Int32)
-
-
NativeClearUICommandItems
= Void Function(Pointer<Void>)
-
-
NativeCollectNativeProfileData
= Void Function(Pointer<Void> pagePtr, Pointer<Pointer<Utf8>> data, Pointer<Uint32> len)
-
-
NativeCreateBindingObject
= Void Function(Double contextId, Pointer<NativeBindingObject> nativeBindingObject, Int32 type, Pointer<NativeValue> args, Int32 argc)
-
-
NativeCreateScreen
= Pointer<Void> Function(Double, Double)
-
-
NativeDisposePage
= Void Function(Double contextId, Pointer<Void>, Pointer<Void> page, Handle context, Pointer<NativeFunction<HandleDisposePageResult>> resultCallback)
-
-
NativeDisposePageSync
= Void Function(Double contextId, Pointer<Void>, Pointer<Void> page)
-
-
NativeDumpQuickjsByteCode
= Void Function(Pointer<Void>, Int64 profileId, Pointer<Uint8> code, Int32 code_len, Pointer<Pointer<Uint8>> parsedBytecodes, Pointer<Uint64> bytecodeLen, Pointer<Utf8> url, Handle context, Pointer<NativeFunction<NativeDumpQuickjsByteCodeResultCallback>> resultCallback)
-
-
NativeDumpQuickjsByteCodeResultCallback
= Void Function(Handle object)
-
-
NativeEvaluateJavaScriptCallback
= Void Function(Handle object, Int8 result)
-
-
NativeEvaluateQuickjsByteCode
= Void Function(Pointer<Void>, Pointer<Uint8> bytes, Int32 byteLen, Int64 profileId, Handle object, Pointer<NativeFunction<NativeEvaluateQuickjsByteCodeCallback>> callback)
-
-
NativeEvaluateQuickjsByteCodeCallback
= Void Function(Handle object, Int8 result)
-
-
NativeEvaluateScripts
= Void Function(Pointer<Void>, Pointer<Uint8> code, Uint64 code_len, Pointer<Pointer<Uint8>> parsedBytecodes, Pointer<Uint64> bytecodeLen, Pointer<Utf8> url, Int32 startLine, Int64 profileId, Handle object, Pointer<NativeFunction<NativeEvaluateJavaScriptCallback>> resultCallback)
-
-
NativeFlushUICommand
= Void Function(Double contextId, Pointer<NativeBindingObject> selfPointer)
-
-
NativeFreeSVGResult
= Void Function(Pointer<NativeGumboOutput> ptr)
-
-
NativeGetUICommandItems
= Pointer<Uint64> Function(Pointer<Void>)
-
-
NativeGetUICommandItemSize
= Int64 Function(Pointer<Void>)
-
-
NativeGetUICommandKindFlags
= Uint32 Function(Pointer<Void>)
-
-
NativeGetWebFInfo
= Pointer<NativeWebFInfo> Function()
-
-
NativeGetWidgetElementShape
= Int8 Function(Double contextId, Pointer<NativeBindingObject> nativeBindingObject, Pointer<NativeValue> result)
-
-
NativeHandleInvokeModuleResult
= Void Function(Handle context, Pointer<NativeValue> result)
-
-
NativeInitDartDynamicLinking
= Void Function(Pointer<Void> data)
-
-
NativeInitDartIsolateContext
= Pointer<Void> Function(Int64 sendPort, Pointer<Uint64> dartMethods, Int32 methodsLength, Int8 enableProfile)
-
-
NativeInvokeEventListener
= Void Function(Pointer<Void>, Pointer<NativeString>, Pointer<Utf8> eventType, Pointer<Void> nativeEvent, Pointer<NativeValue>, Handle object, Pointer<NativeFunction<NativeInvokeModuleCallback>> returnCallback)
-
-
NativeInvokeModule
= Pointer<NativeValue> Function(Pointer<Void> callbackContext, Double contextId, Int64 profileId, Pointer<NativeString> module, Pointer<NativeString> method, Pointer<NativeValue> params, Pointer<NativeFunction<NativeAsyncModuleCallback>>)
-
-
NativeInvokeModuleCallback
= Void Function(Handle object, Pointer<NativeValue> result)
-
-
NativeInvokeResultCallback
= Void Function(Handle object, Pointer<NativeValue> result)
-
-
NativeIsJSThreadBlocked
= Int8 Function(Pointer<Void>, Double)
-
-
NativeJSError
= Void Function(Double contextId, Pointer<Utf8>)
-
-
NativeJSLog
= Void Function(Double contextId, Int32 level, Pointer<Utf8>)
-
-
NativeNewPageId
= Int64 Function()
-
-
NativeOnDartContextFinalized
= Void Function(Pointer<Void> data)
-
-
NativeParseHTML
= Void Function(Pointer<Void>, Pointer<Uint8> code, Int32 length, Int64 profileId, Handle context, Pointer<NativeFunction<NativeParseHTMLCallback>> result_callback)
-
-
NativeParseHTMLCallback
= Void Function(Handle object)
-
-
NativeParseSVGResult
= Pointer<NativeGumboOutput> Function(Pointer<Utf8> code, Int32 length)
-
-
NativeRAFAsyncCallback
= Void Function(Pointer<Void> callbackContext, Double contextId, Double data, Pointer<Utf8> errmsg)
-
-
NativeRegisterPluginByteCode
= Void Function(Pointer<Uint8> bytes, Int32 length, Pointer<Utf8> pluginName)
-
-
NativeReloadApp
= Void Function(Double contextId)
-
-
NativeRequestAnimationFrame
= Void Function(Int32 newFrameId, Pointer<Void> callbackContext, Double contextId, Pointer<NativeFunction<NativeRAFAsyncCallback>>)
-
-
NativeRequestBatchUpdate
= Void Function(Double contextId)
-
-
NativeSetInterval
= Void Function(Int32 newTimerId, Pointer<Void> callbackContext, Double contextId, Pointer<NativeFunction<NativeAsyncCallback>>, Int32)
-
-
NativeSetTimeout
= Void Function(Int32 newTimerId, Pointer<Void> callbackContext, Double contextId, Pointer<NativeFunction<NativeAsyncCallback>>, Int32)
-
-
NativeToBlob
= Void Function(Pointer<Void> callbackContext, Double contextId, Pointer<NativeFunction<NativeAsyncBlobCallback>>, Pointer<Void>, Double)
-