webf
library
Functions
allocateNewBindingObject ()
→ Pointer <NativeBindingObject >
allocateNewPage (bool sync , double newContextId , int syncBufferSize )
→ Future <void >
attributeToProperty <T > (String value )
→ T
castToType <T > (dynamic value )
→ T
clearNativeProfileData ()
→ void
clearUICommand (double contextId )
→ void
collectChildrenAndRemoveFromOldParent (Node node , List <Node > nodes )
→ bool
collectNativeProfileData ()
→ String
createElement (String name , [BindingContext ? context ])
→ Element
createElementNS (String uri , String name , [BindingContext ? context ])
→ Element
createScreen (double width , double height )
→ Pointer <Void >
createSvgElement (String name , [BindingContext ? context ])
→ Element
debugOverridePDefaultStyle (Map <String , dynamic > newStyle )
→ void
debugPrintGumboNodeTree (Pointer <NativeGumboNode > nodePtr , [int indent = 0 ])
→ void
defaultDecisionHandler (WebFNavigationAction action )
→ Future <WebFNavigationActionPolicy >
defineBuiltInElements ()
→ void
defineElement (String name , ElementCreator creator )
→ void
defineElementNS (String uri , String name , ElementCreator creator )
→ dynamic
deleteFile (File file )
→ Future <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 > ?
getChildNodes (ContainerNode node , List <Node > nodes )
→ void
getEntrypointUri (double ? contextId )
→ Uri
getNodeTypeValue (NodeType nodeType )
→ int
https://dom.spec.whatwg.org/#dom-node-nodetype
getObjectElementClientFactory ()
→ ObjectElementClientFactory ?
getOrigin (Uri uri )
→ String
getPropertyNamesBindingCall (BindingObject bindingObject , List args , {BindingOpItem ? profileOp })
→ dynamic
getterBindingCall (BindingObject bindingObject , List args , {BindingOpItem ? profileOp })
→ dynamic
getWebFInfo ()
→ WebFInfo
getWebFMethodChannel ()
→ MethodChannel
getWebFTemporaryPath ()
→ Future <String >
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 >
invokeBindingMethodAsync (BindingObject bindingObject , List args , {BindingOpItem ? profileOp })
→ dynamic
invokeBindingMethodFromNativeImpl (double contextId , int profileId , Pointer <NativeBindingObject > nativeBindingObject , Pointer <NativeValue > returnValue , Pointer <NativeValue > nativeMethod , int argc , Pointer <NativeValue > argv )
→ void
invokeBindingMethodSync (BindingObject bindingObject , List args , {BindingOpItem ? profileOp })
→ dynamic
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
isGzip (List <int > data )
→ bool
isJSRunningInDedicatedThread (double contextId )
→ bool
isJSThreadBlocked (double contextId )
→ bool
isValidUTF8String (Uint8List data )
→ 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
resolveStringFromData (List <int > data , {Codec codec = utf8 , bool preferSync = false })
→ FutureOr <String >
scheduleDelayForFrameCallback ()
→ void
setObjectElementFactory (ObjectElementClientFactory factory )
→ void
setTargetPlatformForDesktop ()
→ void
If the current platform is a desktop platform that isn't yet supported by
TargetPlatform, override the default platform to one that is.
Otherwise, do nothing.
No need to handle macOS, as it has now been added to TargetPlatform.
setterBindingCall (BindingObject bindingObject , List args , {BindingOpItem ? profileOp })
→ dynamic
setupHttpOverrides (HttpClientInterceptor ? httpClientInterceptor , {required double contextId })
→ WebFHttpOverrides
stringToNativeString (String string )
→ Pointer <NativeString >
toNativeValue (Pointer <NativeValue > target , dynamic value , [BindingObject ? ownerBindingObject ])
→ void
traverseElement (Element element , TraverseElementCallback callback )
→ void
tryParseHttpDate (String input )
→ DateTime ?
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 )
BeforeRendererAttach
= RenderObject Function()
BindingCallFunc
= dynamic Function(BindingObject bindingObject , List args , {BindingOpItem ? profileOp })
BindingMethodCallback
= dynamic Function(List args )
BindingObjectOperation
= void Function(WebFViewController ? view , BindingObject bindingObject )
BindingPropertyGetter
= dynamic Function()
BindingPropertySetter
= void Function(dynamic value )
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 )
DoubleCallback
= void Function(double )
ElementAttributeDeleter
= void Function()
ElementAttributeGetter
= String ? Function()
ElementAttributeSetter
= void Function(String value )
ElementCreator
= Element Function(BindingContext ? context )
EventHandler
= Future <void > Function(Event event )
GetChildNodes
= List <Node > Function()
GetRenderBoxModel
= RenderBoxModel ? Function()
Get the render box model of current element.
GetRootElementFontSize
= double Function()
GetTargetId
= int Function()
GetViewportSize
= Size Function()
Get the viewport size of current element.
HandleAllocateNewPageResult
= Void Function(Handle object , Pointer <Void > page )
HandleDisposePageResult
= Void Function(Handle context )
InsertNodeHandler
= void Function(ContainerNode container , Node child , Node ? next )
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 )
InvokeModuleCallback
= Future Function({Object ? data , String ? error })
JSErrorHandler
= void Function(String message )
JSLogHandler
= void Function(int level , String message )
LoadErrorHandler
= void Function(FlutterError error , StackTrace stack )
LoadHandler
= void Function(WebFController controller )
MethodCallCallback
= Future Function(String method , dynamic args )
ModuleCreator
= BaseModule Function(ModuleManager ? moduleManager )
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 )
NewModuleCreator
= BaseModule Function(ModuleManager )
NodeVisitor
= void Function(Node node )
ObjectElementClientFactory
= ObjectElementClient Function(ObjectElementHost objectElementHost )
OnControllerCreated
= void Function(WebFController controller )
OnCustomElementAttached
= void Function(WebFWidgetElementToWidgetAdapter <RenderObject > newWidget )
OnCustomElementDetached
= void Function(WebFWidgetElementToWidgetAdapter <RenderObject > detachedWidget )
PendingCallback
= void Function()
ScriptExecution
= Future <void > Function(bool async )
TestElement
= bool Function(Element element )
TitleChangedHandler
= void Function(String title )
TraverseElementCallback
= void Function(Element element )
VoidCallback
= void Function()
WebFNavigationDecisionHandler
= Future <WebFNavigationActionPolicy > Function(WebFNavigationAction action )
WebFNavigationErrorHandler
= void Function(Object error , Object stack )