voltron library

Classes

APIProvider
AssetBundleLoader
BaseGroupController<T extends GroupViewModel>
BaseViewController<T extends RenderViewModel>
BinaryReader
BoundingClientRect
BoxWidget
BuildTimePoint
CacheItem
CallNativeParams
CapInsets
ChoreographerUtil
ClipboardModule
ConsoleModule
ControllerHolder
ControllerManager
ControllerMethodProp
ControllerMethodPropConsumer<T extends RenderViewModel>
ControllerMethodPropProvider
ControllerProps
ControllerRegistry
ControllerUpdateUtil
CookieManager
CoreApi
DefaultExceptionHandlerAdapter
DefaultHttpAdapter
DefaultProcessor
DefaultStorageAdapter
Deserializer
DevFactory
DeviceAdapter
DeviceEventModule
DevRemoteServerData
DevServerCallback
DevServerConfig
DevServerHelper
DevServerImpl
DevServerImplDisable
DevServerInterface
DevSupportManager
Dimensions
DivContainerViewModel
DivContainerWidget
DivController
DivRenderViewModel
DivWidget
DomHolder
DomUpdateUtil
ElementTimePoint
EngineContext
EngineInitParams
EngineLifecycleEventListener
EngineMonitor
EngineMonitorEvent
EngineMonitorEventKey
EventDispatcher
EventHolder
ExceptionModule
FfiManager
FileBundleLoader
FlexLayoutParams
FlexNode
FlexNodeAPI<T>
FlexNodeStyle
FlexOutput
FlexSpacing
FlexValue
FlexValueNative
FloatStyleMethodProp
FocusNodeProxy
FontScaleAdapter
FRBaseStatelessWidget
FRState<T extends FRStatefulWidget>
FRStatefulWidget
GestureHandleCallback
GlobalConfigs
GlobalLayoutListener
GroupController<T extends GroupViewModel, R extends RenderNode>
GroupViewModel
HttpBundleLoader
HttpHeaderReq
HttpHeaderRsp
ImageController
ImageEventDispatcher
ImageLoaderModule
ImageRenderViewModel
ImageSpanMethodProvider
ImageVirtualNode
ImageWidget
InstanceLifecycleEventListener
InternalizedStringTable
JavaScriptModule
JavaScriptModuleGenerator
JSLoadInstanceContext
JSPromise
JSRenderContext
ListItemRenderNode
ListItemViewController
ListItemViewModel
ListItemWidget
ListPullFooterViewController
ListPullFooterViewModel
ListPullFooterWidget
ListPullHeaderViewController
ListPullHeaderViewModel
ListPullHeaderWidget
ListViewController
ListViewDetailModel
ListViewModel
ListViewWidget
LoadingModel
LogUtils
LruCache<K, V>
MatrixDecompositionContext
MatrixUtil
MethodPropProvider
ModalContainerWidget
ModalController
ModalRenderNode
ModalRenderViewModel
ModalWidget
ModuleAnrMonitor
ModuleGenerator
ModuleLoadParams
ModuleManager
MonitorMessage
MoveHolder
NativeGestureDispatcher
NativeGestureDispatcherManager
NativeGestureHandle
NativeGestureProcessor
NativeModule
注解module名字
NativePromise
NativeScrollGestureDispatcher
NetInfoModule
NetworkModule
NodePerformanceData
NodeProps
OnResumeAndPauseListener
Pair<T1, T2>
PerformanceData
PerformanceTimePoint
PlatformManager
平台相关能力的管理
PositionWidget
Promise
RefreshEventDispatcher
RefreshItemController
RefreshWrapperController
RefreshWrapperItemRenderViewModel
RefreshWrapperItemWidget
RefreshWrapperRenderContentViewModel
RefreshWrapperRenderViewModel
RefreshWrapperWidget
RenderContext<T extends LoadInstanceContext>
RenderManager
RenderNode
RenderOperatorRunner
RenderOpTask
RenderTree
RenderViewModel
ResourceDataHolder
RFStatefulElement
RFStatelessElement
RootNodeController
RootRenderNode
RootRenderViewModel
RootWidgetViewModel
ScreenObserver
ScreenUtil
ScrollableModel
ScrollNotificationListener
ScrollViewController
ScrollViewDetailRenderViewModel
ScrollViewRenderViewModel
ScrollViewWidget
ShredPreferenceAdapter
SQLiteHelper
StickyTabBarDelegate
StorageKeyValue
StorageModule
StringStyleMethodProp
StyleMethodProp
StyleMethodPropProvider
StyleNode
TextController
TextData
TextEditingControllerProxy
TextExtra
TextInputController
TextInputDispatcher
TextInputRenderViewModel
TextInputWidget
TextMethodProvider
TextRenderNode
TextRenderViewModel
TextViewModel
TextVirtualNode
TextWidget
TimeModule
TimeMonitor
TimerTask
TransformOrigin
TransformUtil
UIFunction
UtilsModule
VfsManager
ViewControllerGenerator
ViewPagerController
ViewPagerItemController
ViewPagerItemRenderViewModel
ViewPagerItemWidget
ViewPagerRenderViewModel
ViewPagerWidget
VirtualNode
VirtualNodeManager
VoltronApi
封装dart to c++的api调用,处理各种中间数据
VoltronArray
VoltronBridgeManager
voltron外层业务逻辑对c++调用逻辑的bridge封装
VoltronBuffer
VoltronBundleLoader
VoltronExceptionHandlerAdapter
VoltronHttpAdapter
VoltronHttpRequest
VoltronHttpResponse
VoltronJSEngine
VoltronJSLoader
VoltronJSLoaderManager
VoltronLinkNode<T>
voltron自定义的双向链表节点
VoltronMap
VoltronMethod
注解module方法的名字
VoltronNativeModule
VoltronPair<T1, T2>
VoltronRenderApi
封装dart to c++的api调用,处理各种中间数据
VoltronRenderBridgeManager
voltron外层业务逻辑对c++调用逻辑的bridge封装
VoltronStorageAdapter
VoltronThirdPartyAdapter
VoltronViewController<T extends RenderViewModel, R extends RenderNode>
VoltronWidget
WaterfallItemViewController
WaterfallItemViewModel
WaterfallItemWidget
WaterfallViewController
WaterfallViewModel
WaterfallWidget
WebSocketClient
WebSocketListener
WebsocketModule
WebViewViewController
WebViewViewModel
WebViewViewWidget
WebViewWidgetState
Work

Constants

epsilon → const double
kDefaultTextShadowColor → const int
kEllipsis → const String
kInvalidId → const int
kInvalidIndex → const int
kMaxLineCount → const int
undefined → const double
useNewCommType → const bool

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, Pointer<Utf16> registerHeader, int type, Pointer<NativeFunction<T>> func)
AddCallFuncNativeType<T extends Function> = Int32 Function(Uint32 ffiId, Pointer<Utf16> registerHeader, 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, Pointer<Utf16> extra)
NotifyNetworkEventFfiNativeType = Void Function(Int32 engineId, Pointer<Utf16> requestId, Int32 eventType, Pointer<Utf16> response, Pointer<Utf16> extra)
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, RenderViewModel? footerModel})
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)

Exceptions / Errors

JsError