bridge
library
Functions
allocateNewBindingObject ()
→ Pointer <NativeBindingObject >
allocateNewPage (bool sync , double newContextId , int syncBufferSize , {bool useLegacyUICommand = false , bool enableBlink = false })
→ Future <void >
asyncInvokeBindingMethodFromNativeImpl (WebFViewController view , Pointer <BindingObjectAsyncCallContext > asyncCallContext , Pointer <NativeBindingObject > nativeBindingObject )
→ Future <void >
clearUICommand (double contextId )
→ void
createScreen (double width , double height )
→ Pointer <Void >
createWidgetElementShape (Map <String , ElementCreator > creators )
→ Pointer <WidgetElementShape >
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 , bool isModule = false })
→ Future <Uint8List >
emitModuleEvent (double contextId , String moduleName , Event ? event , )
→ dynamic
evaluateModule (double contextId , Uint8List codeBytes , {String ? url , String ? cacheKey , bool loadedFromCache = false , int line = 0 , ScriptElement ? scriptElement })
→ Future <bool >
evaluateQuickjsByteCode (double contextId , Uint8List bytes , {ScriptElement ? scriptElement })
→ Future <bool >
evaluateScripts (double contextId , Uint8List codeBytes , {String ? url , String ? cacheKey , bool loadedFromCache = false , int line = 0 , ScriptElement ? scriptElement })
→ 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 > ?
getPointerTypeOfBindingObject (BindingObject bindingObject )
→ JSPointerType
getterBindingCall (BindingObject bindingObject , List args )
→ dynamic
getUICommandItems (Pointer <Void > page )
→ Pointer <UICommandBufferPack >
getUICommandSize (double contextId )
→ int
getWebFInfo ()
→ WebFInfo
handleEvaluateQuickjsByteCodeResult (Object handle , int result )
→ void
handleEvaluateScriptsResult (Object handle , int result )
→ void
initBridge (WebFViewController view , WebFThread runningThread , bool enableBlink )
→ FutureOr <double >
Init bridge
initDartDynamicLinking ()
→ void
initDartIsolateContext (List <int > dartMethods )
→ Pointer <Void >
invokeBindingMethodFromNativeSync (double contextId , Pointer <NativeBindingObject > nativeBindingObject , Pointer <NativeValue > returnValue , Pointer <NativeValue > nativeMethod , int argc , Pointer <NativeValue > argv )
→ void
invokeModule (Pointer <Void > callbackContext , WebFController controller , String moduleName , String method , dynamic params , Pointer <Uint8 > errmsg , Pointer <NativeFunction <NativeAsyncModuleCallback > > callback )
→ dynamic
invokeModuleEvent (double contextId , String moduleName , Event ? event , )
→ dynamic
isBindingObjectDisposed (Pointer <NativeBindingObject > ? nativeBindingObject )
→ bool
isContextDedicatedThread (double contextId )
→ bool
isJSRunningInDedicatedThread (double contextId )
→ bool
isJSThreadBlocked (double contextId )
→ bool
isPageAlive (double contextId )
→ bool
makeDartMethodsData ()
→ List <int >
makeNativeValueArguments (BindingObject ownerBindingObject , List args )
→ Pointer <NativeValue >
nativeStringToString (Pointer <NativeString > pointer )
→ String
nativeUICommandToDartFFI (double contextId )
→ List <UICommand >
newPageId ()
→ int
parseHTML (double contextId , Uint8List codeBytes )
→ Future <void >
parseSVGResult (String code )
→ GumboOutput
registerPluginByteCode (Uint8List bytecode , String name )
→ void
requestExecuteCallback (dynamic message )
→ void
setterBindingCall (BindingObject bindingObject , List args )
→ dynamic
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 )
AsyncBindingMethodCallback
= Future Function(List args )
BindingCallFunc
= dynamic Function(BindingObject bindingObject , List args )
BindingMethodCallback
= dynamic Function(List args )
BindingObjectOperation
= void Function(WebFViewController ? view , BindingObject bindingObject )
BindingPropertyGetter
= dynamic Function()
BindingPropertySetter
= void Function(dynamic value )
DartAllocateNativeBindingObject
= Pointer <NativeBindingObject > Function()
DartAllocateNewPage
= void Function(double , int , int , int , Pointer <Void > , Pointer <WidgetElementShape > , int shapeLen , Object object , Pointer <NativeFunction <HandleAllocateNewPageResult > > handleResult )
DartAllocateNewPageSync
= Pointer <Void > Function(double , Pointer <Void > , Pointer <WidgetElementShape > , int , int )
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 )
DartBindingObjectAsyncCallCallback
= void Function(Pointer <Void > resolver , Pointer <NativeValue > successResult , Pointer <Utf8 > errorMsg )
DartClearUICommandItems
= void Function(Pointer <Void > )
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 > , Pointer <Uint8 > code , int codeLen , Pointer <Pointer <Uint8 > > parsedBytecodes , Pointer <Uint64 > bytecodeLen , Pointer <Utf8 > url , bool isModule , Object context , Pointer <NativeFunction <NativeDumpQuickjsByteCodeResultCallback > > resultCallback )
DartEvaluateQuickjsByteCode
= void Function(Pointer <Void > , Pointer <Uint8 > bytes , int byteLen , Pointer <NativeBindingObject > , Object object , Pointer <NativeFunction <NativeEvaluateQuickjsByteCodeCallback > > callback )
DartEvaluateScripts
= void Function(Pointer <Void > , Pointer <Uint8 > code , int codeLen , Pointer <Pointer <Uint8 > > parsedBytecodes , Pointer <Uint64 > bytecodeLen , Pointer <Utf8 > url , int startLine , Pointer <NativeBindingObject > , Object object , Pointer <NativeFunction <NativeEvaluateJavaScriptCallback > > resultCallback )
DartFetchJavaScriptESMModuleCallback
= void Function(Pointer <Void > callbackContext , double contextId , Pointer <Utf8 > error , Pointer <Uint8 > bytes , int length )
DartFlushUICommand
= void Function(double contextId , Pointer <NativeBindingObject > selfPointer )
DartFreeActiveCommandBuffer
= void Function(Pointer <Void > )
DartFreeSVGResult
= void Function(Pointer <NativeGumboOutput > ptr )
DartGetUICommandItems
= Pointer <UICommandBufferPack > Function(Pointer <Void > )
DartGetUICommandItemSize
= 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 )
DartInvokeBindingMethodsFromDart
= void Function(Pointer <NativeBindingObject > bindingObject , double contextId , Pointer <NativeValue > method , int argc , Pointer <NativeValue > argv , Object bindingDartObject , Pointer <NativeFunction <NativeInvokeResultCallback > > resultCallback )
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 )
DartIsNativeBindingObjectDisposed
= bool Function(Pointer <NativeBindingObject > )
DartLoadNativeLibraryCallback
= Pointer <Void > Function(Pointer <NativeFunction <StandardWebFPluginExternalSymbol > > entryPoint , Pointer <NativeString > libName , Pointer <Void > initializeData , double contextId , Pointer <Void > exportData )
DartNewPageId
= int Function()
DartOnDartContextFinalized
= void Function(Pointer <Void > data )
DartParseHTML
= void Function(Pointer <Void > , Pointer <Uint8 > code , int length , Object context , Pointer <NativeFunction <NativeParseHTMLCallback > > resultCallback )
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 )
DartRequestIdleAsyncCallback
= void Function(Pointer <Void > callbackContext , double contextId , double timeout )
DartStandardWebFPluginExternalSymbol
= void Function()
HandleAllocateNewPageResult
= Void Function(Handle object , Pointer <Void > page )
HandleDisposePageResult
= Void Function(Handle context )
InvokeBindingMethodsFromDart
= Void Function(Pointer <NativeBindingObject > bindingObject , Double contextId , Pointer <NativeValue > method , Int32 argc , Pointer <NativeValue > argv , Handle bindingDartObject , Pointer <NativeFunction <NativeInvokeResultCallback > > resultCallback )
InvokeBindingsMethodsFromNative
= Void Function(Double contextId , Pointer <NativeBindingObject > bindingObject , Pointer <NativeValue > returnValue , Pointer <NativeValue > method , Int32 argc , Pointer <NativeValue > argv )
NativeAllocateNativeBindingObject
= Pointer <NativeBindingObject > Function()
NativeAllocateNewPage
= Void Function(Double , Int32 , Int8 , Int8 , Pointer <Void > , Pointer <WidgetElementShape > , Int32 shapeLen , Handle object , Pointer <NativeFunction <HandleAllocateNewPageResult > > handleResult )
NativeAllocateNewPageSync
= Pointer <Void > Function(Double , Pointer <Void > , Pointer <WidgetElementShape > , Int32 , Int8 )
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 )
NativeBindingObjectAsyncCallCallback
= Void Function(Pointer <Void > resolver , Pointer <NativeValue > successResult , Pointer <Utf8 > errorMsg )
NativeCancelAnimationFrame
= Void Function(Double contextId , Int32 id )
NativeCancelIdleCallback
= Void Function(Double contextId , Int32 id )
NativeClearTimeout
= Void Function(Double contextId , Int32 )
NativeClearUICommandItems
= Void Function(Pointer <Void > )
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 > , Pointer <Uint8 > code , Int32 codeLen , Pointer <Pointer <Uint8 > > parsedBytecodes , Pointer <Uint64 > bytecodeLen , Pointer <Utf8 > url , Bool isModule , Handle context , Pointer <NativeFunction <NativeDumpQuickjsByteCodeResultCallback > > resultCallback )
NativeDumpQuickjsByteCodeResultCallback
= Void Function(Handle object )
NativeEvaluateJavaScriptCallback
= Void Function(Handle object , Int8 result )
NativeEvaluateModule
= Void Function(Pointer <Void > , Pointer <Uint8 > code , Uint64 codeLen , Pointer <Pointer <Uint8 > > parsedBytecodes , Pointer <Uint64 > bytecodeLen , Pointer <Utf8 > url , Int32 startLine , Pointer <NativeBindingObject > , Handle object , Pointer <NativeFunction <NativeEvaluateJavaScriptCallback > > resultCallback )
NativeEvaluatePropertyPathFunc
= Pointer <NativeValue > Function(Pointer <Void > dartIsolateContext , Double contextId , Pointer <Utf8 > objectId , Pointer <Utf8 > propertyPath )
NativeEvaluateQuickjsByteCode
= Void Function(Pointer <Void > , Pointer <Uint8 > bytes , Int32 byteLen , Pointer <NativeBindingObject > , Handle object , Pointer <NativeFunction <NativeEvaluateQuickjsByteCodeCallback > > callback )
NativeEvaluateQuickjsByteCodeCallback
= Void Function(Handle object , Int8 result )
NativeEvaluateScripts
= Void Function(Pointer <Void > , Pointer <Uint8 > code , Uint64 codeLen , Pointer <Pointer <Uint8 > > parsedBytecodes , Pointer <Uint64 > bytecodeLen , Pointer <Utf8 > url , Int32 startLine , Pointer <NativeBindingObject > , Handle object , Pointer <NativeFunction <NativeEvaluateJavaScriptCallback > > resultCallback )
NativeFetchJavaScriptESMModule
= Void Function(Pointer <Void > callbackContext , Double contextId , Pointer <NativeString > moduleUrl , Pointer <NativeFunction <NativeFetchJavaScriptESMModuleCallback > > callback )
NativeFetchJavaScriptESMModuleCallback
= Void Function(Pointer <Void > callbackContext , Double contextId , Pointer <Utf8 > error , Pointer <Uint8 > bytes , Int32 length )
NativeFlushUICommand
= Void Function(Double contextId , Pointer <NativeBindingObject > selfPointer )
NativeFreeActiveCommandBuffer
= Void Function(Pointer <Void > )
NativeFreeSVGResult
= Void Function(Pointer <NativeGumboOutput > ptr )
NativeGetObjectPropertiesAsyncFunc
= Void Function(Pointer <Void > dartIsolateContext , Double contextId , Pointer <Utf8 > objectId , Int32 includePrototype , Handle object , Pointer <NativeFunction <NativeGetObjectPropertiesCallback > > callback )
NativeGetObjectPropertiesCallback
= Void Function(Handle object , Pointer <NativeValue > result )
NativeGetObjectPropertiesFunc
= Pointer <NativeValue > Function(Pointer <Void > dartIsolateContext , Double contextId , Pointer <Utf8 > objectId , Int32 includePrototype )
NativeGetUICommandItems
= Pointer <UICommandBufferPack > Function(Pointer <Void > )
NativeGetUICommandItemSize
= Int64 Function(Pointer <Void > )
NativeGetWebFInfo
= Pointer <NativeWebFInfo > Function()
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 )
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 , Pointer <NativeString > module , Pointer <NativeString > method , Pointer <NativeValue > params , Pointer <Uint8 > errmsg , 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 )
NativeIsNativeBindingObjectDisposed
= Bool Function(Pointer <NativeBindingObject > )
NativeJSError
= Void Function(Double contextId , Pointer <Utf8 > )
NativeJSLog
= Void Function(Double contextId , Int32 level , Pointer <Utf8 > )
NativeLoadNativeLibrary
= Void Function(Double contextId , Pointer <NativeString > libName , Pointer <Void > initializeData , Pointer <Void > importData , Pointer <NativeFunction <NativeLoadNativeLibraryCallback > > callback )
NativeLoadNativeLibraryCallback
= Pointer <Void > Function(Pointer <NativeFunction <StandardWebFPluginExternalSymbol > > entryPoint , Pointer <NativeString > libName , Pointer <Void > initializeData , Double contextId , Pointer <Void > exportData )
NativeNewPageId
= Int64 Function()
NativeOnDartContextFinalized
= Void Function(Pointer <Void > data )
NativeOnJSLogStructured
= Void Function(Double contextId , Int32 level , Int32 argc , Pointer <NativeValue > argv )
NativeParseHTML
= Void Function(Pointer <Void > , Pointer <Uint8 > code , Int32 length , Handle context , Pointer <NativeFunction <NativeParseHTMLCallback > > resultCallback )
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 )
NativeReleaseObjectFunc
= Void Function(Pointer <Void > dartIsolateContext , Double contextId , Pointer <Utf8 > objectId )
NativeReloadApp
= Void Function(Double contextId )
NativeRequestAnimationFrame
= Void Function(Int32 newFrameId , Pointer <Void > callbackContext , Double contextId , Pointer <NativeFunction <NativeRAFAsyncCallback > > )
NativeRequestBatchUpdate
= Void Function(Double contextId )
NativeRequestIdleAsyncCallback
= Void Function(Pointer <Void > callbackContext , Double contextId , Double timeout )
NativeRequestIdleCallback
= Void Function(Int32 newIdleId , Pointer <Void > callbackContext , Double contextId , Double timeout , Int32 uiCommandSize , Pointer <NativeFunction <NativeRequestIdleAsyncCallback > > )
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 )
StandardWebFPluginExternalSymbol
= Void Function()
StaticDefinedAsyncBindingMethodCallback
= Future Function(BindingObject , List args )
StaticDefinedAsyncBindingObjectMethodMap
= Map <String , StaticDefinedAsyncBindingObjectMethod >
StaticDefinedBindingPropertyGetter
= dynamic Function(BindingObject )
StaticDefinedBindingPropertyMap
= Map <String , StaticDefinedBindingProperty >
StaticDefinedBindingPropertySetter
= void Function(BindingObject , dynamic value )
StaticDefinedSyncBindingMethodCallback
= dynamic Function(BindingObject , List args )
StaticDefinedSyncBindingObjectMethodMap
= Map <String , StaticDefinedSyncBindingObjectMethod >