voltron
library
Functions
-
allocate<T extends NativeType>(int byteCount)
→ Pointer<T>
-
-
bufferToString(Uint8List byteBuffer)
→ String
-
-
calculateNodeLayout(int engineId, int rootId, int nodeId, double width, int widthMode, double height, int heightMode)
→ Pointer<Int64>
-
-
callNative(int engineId, Pointer<Utf16> moduleNamePtr, Pointer<Utf16> moduleFuncPtr, Pointer<Utf16> callIdPtr, Pointer<Void> paramsDataPtr, int paramsLen, int bridgeParamJsonInt)
→ void
-
-
checkValueType(Object? value, Object? defaultValue)
→ Object?
-
-
combineProps(VoltronMap origin, VoltronMap diff, {int combineLevel = 0})
→ VoltronMap
-
-
createDir(Directory? parent, String dirName)
→ Future<Directory?>
-
-
currentMicroseconds()
→ int
-
-
currentTimeMillis()
→ int
-
-
decodeObject(Pointer<Uint8> buffer, int length)
→ Object?
-
-
downloadFile(String url)
→ Future<String>
-
-
encodeObject(Object? object)
→ Pair<Pointer<Uint8>, int>?
-
-
enumValueToString(Object o)
→ String
-
-
fileNameByFile(FileSystemEntity? file)
→ String
-
-
flexAlignFromValue(String? value)
→ FlexAlign?
-
-
flexCssDirectionFromValue(String? value)
→ FlexCSSDirection?
-
-
flexDirectionFromValue(String? value)
→ FlexDirection?
-
-
flexDisplayFromValue(String? value)
→ FlexDisplay?
-
-
flexJustifyFromValue(String? value)
→ FlexJustify?
-
-
flexMeasureModeFromInt(int value)
→ FlexMeasureMode
-
-
flexMeasureModeFromValue(String? value)
→ FlexMeasureMode?
-
-
flexOverflowFromValue(String? value)
→ FlexOverflow?
-
-
flexPositionTypeFromValue(String? value)
→ FlexPositionType?
-
-
flexStyleEdgeFromInt(int value)
→ FlexStyleEdge
-
-
flexUnitFromInt(int value)
→ FlexUnit
-
-
flexWrapFromValue(String? value)
→ FlexWrap?
-
-
floatsEqual(double f1, double f2)
→ bool
-
-
free(Pointer<NativeType> pointer)
→ void
-
-
generateByViewModel(BuildContext context, RenderViewModel renderViewModel)
→ Widget
-
-
generateCallback(CommonCallback callback)
→ int
-
-
getCurrentBridge(int engineId)
→ VoltronBridgeManager?
-
-
getDimensions(int windowWidth, int windowHeight, bool shouldUseScreenDisplay, BuildContext? context)
→ VoltronMap
-
-
getImage(String src)
→ ImageProvider<Object>
-
-
getJsonDoubleNumber(double? value, [double defaultValue = 0.0])
→ double
-
获取json格式下的double number, 如果当前number的值为null或nan,就返回默认值 或 0.0
-
getSizeFromKey(GlobalKey<State<StatefulWidget>> key)
→ Size
-
-
globalCallback(int callbackId, Pointer<Uint8> result, int length)
→ void
-
-
imageFromBase64String(String base64String)
→ MemoryImage
-
-
isAssetsUrl(String url)
→ bool
-
-
isDoubleNan(double f1)
→ bool
-
-
isEmpty(String? value)
→ bool
-
-
isFileUrl(String url)
→ bool
-
-
isHttpsUrl(String url)
→ bool
-
-
isHttpUrl(String url)
→ bool
-
-
isWebUrl(String url)
→ bool
-
-
loadAssetFileBinary(String name)
→ Future<ByteData>
-
-
loadLibrary(String name, {String? path, bool isStatic = false})
→ DynamicLibrary
-
-
objectToJson(Object? obj)
→ String
-
-
parseJsonString(String jsonString)
→ Object?
-
-
parseResultCode(int code)
→ FetchResultCode
-
-
postRenderOp(int engineId, int rootId, Pointer<Void> data, int len)
→ void
-
-
reportJSException(int engineId, Pointer<Utf16> descriptionStream, Pointer<Utf16> stackStream)
→ void
-
-
reportJsonException(int engineId, Pointer<Utf8> jsonValue)
→ void
-
-
requestExecuteCallback(dynamic message)
→ void
-
-
resizeModeToBoxFit(String? resizeMode)
→ BoxFit
-
-
resizeModeToImageRepeat(String? value)
→ ImageRepeat
-
-
splitAssetsName(String url)
→ String
-
-
splitFileName(String url)
→ String
-
-
stringFormat(String value)
→ String
-
-
toOverflow(String overflowString)
→ Clip
-
Typedefs
-
AddCallFuncDartType<T extends Function>
= int Function(int ffiId, int type, Pointer<NativeFunction<T>> func)
-
-
AddCallFuncNativeType<T extends Function>
= Int32 Function(Uint32 ffiId, Int32 type, Pointer<NativeFunction<T>> func)
-
-
BackPressHandler
= dynamic Function()
-
-
BindDomAndRenderDartType
= void Function(int domId, int engineId, int renderId)
-
-
BindDomAndRenderNativeType
= Void Function(Uint32 domId, Int32 engineId, Uint32 renderId)
-
-
CalculateNativeFlexNodeLayoutFuncDartType
= void Function(int nativeFlexNode, double width, double height, Pointer<Int64> nativeNodes, int nativeNodesLen, int direction)
-
-
CalculateNativeFlexNodeLayoutFuncNativeType
= Void Function(Int64 nativeFlexNode, Float width, Float height, Pointer<Int64> nativeNodes, Int32 nativeNodesLen, Int32 direction)
-
-
Callback
= void Function(dynamic param, Error? e)
-
-
CallFunctionFfiDartType
= void Function(int engineId, Pointer<Utf16> action, Pointer<Uint8> params, int paramsLen, int callbackId)
-
-
CallFunctionFfiNativeType
= Void Function(Int32 engineId, Pointer<Utf16> action, Pointer<Uint8> params, Int32 paramsLen, Int32 callbackId)
-
-
CallNativeEventFfiDartType
= void Function(int engineId, int rootId, int nodeId, Pointer<Utf16> event, Pointer<Uint8> params, int paramsLen)
-
-
CallNativeEventFfiNativeType
= Void Function(Int32 engineId, Int32 rootId, Int32 nodeId, Pointer<Utf16> event, Pointer<Uint8> params, Int32 paramsLen)
-
-
CallNativeFfi
= Void Function(Int32 engineId, Pointer<Utf16> moduleName, Pointer<Utf16> moduleFunc, Pointer<Utf16> callId, Pointer<Void> paramsData, Uint32 paramsLen, Int32 bridgeParamJson)
-
-
CallNativeFunctionFfiDartType
= void Function(int engineId, int rootId, Pointer<Utf16> callId, Pointer<Uint8> params, int paramsLen, int keep)
-
-
CallNativeFunctionFfiNativeType
= Void Function(Int32 engineId, Int32 rootId, Pointer<Utf16> callId, Pointer<Uint8> params, Int32 paramsLen, Int32 keep)
-
-
CommonCallback
= void Function(dynamic value)
-
-
ConnectRootViewAndRuntimeDartType
= void Function(int engindId, int rootId)
-
-
ConnectRootViewAndRuntimeNativeType
= Void Function(Int32 engindId, Uint32 rootId)
-
-
ContextWrapper
= BuildContext? Function()
-
-
CreateDevtoolsDartType
= int Function(Pointer<Utf16> dataDir, Pointer<Utf16> wsUrl)
-
-
CreateDevtoolsFfiNativeType
= Uint32 Function(Pointer<Utf16> dataDir, Pointer<Utf16> wsUrl)
-
-
DestoryBridgeCallback<T>
= dynamic Function(T b)
-
-
DestroyDevtoolsDartType
= void Function(int devtoolsId, int isReload)
-
-
DestroyDevtoolsFfiNativeType
= Void Function(Uint32 devtoolsId, Int32 isReload)
-
-
DestroyFfiDartType
= void Function(int engineId, int callbackId, int isReload)
-
-
DestroyFfiNativeType
= Void Function(Int32 engineId, Int32 callbackId, Int32 isReload)
-
-
DetFloatValueFuncDartType
= void Function(int nativeFlexNode, double value)
-
-
EmptyBuilder
= Widget Function(BuildContext context)
-
-
EngineListener
= void Function(EngineInitStatus statusCode, String? msg)
-
-
ExecuteCallbackDartType
= void Function(Pointer<Work>)
-
-
ExecuteCallbackNativeType
= Void Function(Pointer<Work>)
-
-
Executor
= void Function(TimerTask task)
-
-
FetchResourceCallback
= dynamic Function(ResourceDataHolder holder)
-
-
FlexMeasureFunc
= int Function(FlexNodeAPI node, double width, FlexMeasureMode widthMode, double height, FlexMeasureMode heightMode)
-
-
FlexNodeMeasureFuncNativeType
= Int64 Function(Int64 nodeId, Float width, Int32 widthMode, Float height, Int32 heightMode)
-
-
Generator<T, V>
= T Function(V params)
-
-
GestureExecutor
= void Function()
-
-
GetCrashMessageFfiType
= Pointer<Utf8> Function()
-
-
GetFlexValueFuncDartType
= Pointer<FlexValueNative> Function(int nativeFlexNode)
-
-
GetFlexValueFuncNativeType
= Pointer<FlexValueNative> Function(Int64 nativeFlexNode)
-
-
GetFlexValueWithEdgeFuncDartType
= Pointer<FlexValueNative> Function(int nativeFlexNode, int edge)
-
-
GetFlexValueWithEdgeFuncNativeType
= Pointer<FlexValueNative> Function(Int64 nativeFlexNode, Int32 edge)
-
-
GetFloatValueFuncDartType
= double Function(int nativeFlexNode)
-
-
GetFloatValueFuncNativeType
= Float Function(Int64 nativeFlexNode)
-
-
GetIntValueFuncDartType
= int Function(int nativeFlexNode)
-
-
GetIntValueFuncNativeType
= Int32 Function(Int64 nativeFlexNode)
-
-
GetVoltronEngineIndexFfiDartType
= int Function()
-
-
GetVoltronEngineIndexFfiNativeType
= Uint32 Function()
-
-
GlobalCallback
= Void Function(Int32 callbackId, Pointer<Uint8> result, Int32 len)
-
-
InitBridgeFfiDartType
= void Function()
-
-
InitBridgeFfiNativeType
= Void Function()
-
-
InitFfiDartType
= int Function(Pointer<NativeFunction<Int8 Function(Int64, Pointer<Dart_CObject>)>> functionPointer, int port)
-
-
InitFfiNativeType
= Uint32 Function(Pointer<NativeFunction<Int8 Function(Int64, Pointer<Dart_CObject>)>> functionPointer, Int64 port)
-
-
InitJsFrameworkFfiDartType
= int Function(Pointer<Utf16> globalConfig, int singleThreadMode, int bridgeParamJson, int isDevModule, int groupId, int vfsId, int ffiId, int domManagerId, int engineId, int callbackId, int devtoolsId, int isReload)
-
-
InitJsFrameworkFfiNativeType
= Int64 Function(Pointer<Utf16> globalConfig, Int32 singleThreadMode, Int32 bridgeParamJson, Int32 isDevModule, Int64 groupId, Uint32 vfsId, Uint32 ffiId, Uint32 domManagerId, Int32 engineId, Int32 callbackId, Uint32 devtoolsId, Uint32 isReload)
-
-
InsertNativeFlexNodeChildFuncDartType
= void Function(int nativeFlexNode, int childNode, int index)
-
-
InsertNativeFlexNodeChildFuncNativeType
= Void Function(Int64 nativeFlexNode, Int64 childNode, Int32 index)
-
-
IRenderExecutor
= void Function()
-
-
LoadInstanceFfiDartType
= int Function(int engineId, Pointer<Uint8> params, int paramsLength)
-
-
LoadInstanceFfiNativeType
= Int64 Function(Int32 engineId, Pointer<Uint8> params, Int32 paramsLength)
-
-
LogListener
= dynamic Function(String tag, LogLevel level, String msg)
-
-
ModuleErrorBuilder
= Widget Function(BuildContext context, int statusCode)
-
-
ModuleExecutor
= dynamic Function()
-
-
ModuleListener
= void Function(ModuleLoadStatus statusCode, String? msg)
-
-
ModuleLoadingBuilder
= Widget Function(BuildContext context)
-
-
NewNativeItemFuncDartType
= int Function()
-
-
NewNativeItemFuncNativeType
= Int64 Function()
-
-
NodeFloatFiledGetter
= Float Function(Int64 nodeId, Int32 filedType)
-
-
NodeFloatFiledSetter
= Void Function(Int64 nodeId, Int32 filedType, Float value)
-
-
NodeIntFiledGetter
= Int32 Function(Int64 nodeId, Int32 filedType)
-
-
NodeIntFiledSetter
= Void Function(Int64 nodeId, Int32 filedType, Int32 value)
-
-
NotifyNetworkEventFfiDartType
= void Function(int engineId, Pointer<Utf16> requestId, int eventType, Pointer<Utf16> response, )
-
-
NotifyNetworkEventFfiNativeType
= Void Function(Int32 engineId, Pointer<Utf16> requestId, Int32 eventType, Pointer<Utf16> response, )
-
-
OnLoadCompleteListener
= dynamic Function(int loadTime, List<EngineMonitorEvent> loadEvents)
-
-
OnNetworkRequestInvokeDartType
= void Function(int engineId, Pointer<Utf16> requestId, Pointer<Uint8> reqMeta, int length)
-
-
OnNetworkRequestInvokeNativeType
= Void Function(Int32 engineId, Pointer<Utf16> requestId, Pointer<Uint8> reqMeta, Int32 length)
-
-
OnNetworkResponseInvokeDartType
= void Function(int engineId, Pointer<Utf16> requestId, Pointer<Uint8> rsqMeta, int length)
-
-
OnNetworkResponseInvokeNativeType
= Void Function(Int32 engineId, Pointer<Utf16> requestId, Pointer<Uint8> reqMeta, Int32 length)
-
-
RefreshWrapperDelegate
= RefreshConfiguration Function({required Widget child, required BuildContext context, })
-
-
RegisterFloatGetterFuncFfiDartType
= int Function(int type, Pointer<NativeFunction<NodeFloatFiledGetter>> func)
-
-
RegisterFloatGetterFuncFfiNativeType
= Int32 Function(Int32 type, Pointer<NativeFunction<NodeFloatFiledGetter>> func)
-
-
RegisterFloatSetterFuncFfiDartType
= int Function(int type, Pointer<NativeFunction<NodeFloatFiledSetter>> func)
-
-
RegisterFloatSetterFuncFfiNativeType
= Int32 Function(Int32 type, Pointer<NativeFunction<NodeFloatFiledSetter>> func)
-
-
RegisterIntGetterFuncFfiDartType
= int Function(int type, Pointer<NativeFunction<NodeIntFiledGetter>> func)
-
-
RegisterIntGetterFuncFfiNativeType
= Int32 Function(Int32 type, Pointer<NativeFunction<NodeIntFiledGetter>> func)
-
-
RegisterIntSetterFuncFfiDartType
= int Function(int type, Pointer<NativeFunction<NodeIntFiledSetter>> func)
-
-
RegisterIntSetterFuncFfiNativeType
= Int32 Function(Int32 type, Pointer<NativeFunction<NodeIntFiledSetter>> func)
-
-
RegisterMeasureFuncFfiDartType
= int Function(int type, Pointer<NativeFunction<FlexNodeMeasureFuncNativeType>> func)
-
-
RegisterMeasureFuncFfiNativeType
= Int32 Function(Int32 type, Pointer<NativeFunction<FlexNodeMeasureFuncNativeType>> func)
-
-
RemoveNativeFlexNodeChildFuncDartType
= void Function(int nativeFlexNode, int childNode)
-
-
RemoveNativeFlexNodeChildFuncNativeType
= Void Function(Int64 nativeFlexNode, Int64 childNode)
-
-
RenderOpTaskGenerator
= RenderOpTask Function(int instanceId, int nodeId, Map params)
-
-
ReportJsException
= Void Function(Int32 engineId, Pointer<Utf16> descriptionStream, Pointer<Utf16> stackStream)
-
-
ReportJsonException
= Void Function(Int32 engineId, Pointer<Utf8> jsonValue)
-
-
RunScriptFromUriFfiDartType
= int Function(int engineId, int vfsId, Pointer<Utf16> uri, Pointer<Utf16> codeCacheDir, int canUseCodeCache, int isLocalFile, int callbackId)
-
-
RunScriptFromUriFfiNativeType
= Int32 Function(Int32 engineId, Uint32 vfsId, Pointer<Utf16> uri, Pointer<Utf16> codeCacheDir, Int32 canUseCodeCache, Int32 isLocalFile, Int32 callbackId)
-
-
SetFlexNodeToStyleFuncDartType
= void Function(int stylePointer, int nodePointer)
-
-
SetFlexNodeToStyleFuncNativeType
= Void Function(Int64 stylePointer, Int64 nodePointer)
-
-
SetFlexValueWithEdgeFuncDartType
= void Function(int nativeFlexNode, int edge)
-
-
SetFlexValueWithEdgeFuncNativeType
= Void Function(Int64 nativeFlexNode, Int32 edge)
-
-
SetFloatValueFuncNativeType
= Void Function(Int64 nativeFlexNode, Float value)
-
-
SetFloatValueWithEdgeFuncDartType
= void Function(int nativeFlexNode, int edge, double value)
-
-
SetFloatValueWithEdgeFuncNativeType
= Void Function(Int64 nativeFlexNode, Int32 edge, Float value)
-
-
SetIntValueFuncDartType
= void Function(int nativeFlexNode, int value)
-
-
SetIntValueFuncNativeType
= Void Function(Int64 nativeFlexNode, Int32 value)
-
-
SingleCallFuncDartType
= void Function(int nativePointer)
-
-
SingleCallFuncNativeType
= Void Function(Int64 nativePointer)
-
-
StorageCallback
= void Function(bool success, Object data, String errorMsg)
-
-
TRequestWillBeSentHook
= void Function(EngineContext context, String requestId, VoltronHttpRequest request)
-
-
TResponseReceivedHook
= void Function(EngineContext context, String requestId, VoltronHttpResponse? response)
-
-
UnloadInstanceFfiDartType
= int Function(int engineId, Pointer<Uint8> params, int paramsLength)
-
-
UnloadInstanceFfiNativeType
= Int64 Function(Int32 engineId, Pointer<Uint8> params, Int32 paramsLength)
-