hybrid_runtime library
Classes
- CallParams
- Call parameters for API invocation
- DartBridge
- Main Flutter SDK class for handling native communication
- EventEmitter
- Base class for event emitter functionality Provides methods for event subscription, unsubscription, and emission
- ILogger
- Logger interface Defines the contract for logger implementations
- Instance
- Instance reference class
- LoggerImpl
- Logger implementation A singleton logger that provides logging functionality with multiple consumers
- LoggerInitOptions
- Logger initialization options Configuration options for setting up the logger
- LoggerManager
- LogMessage
- Log message structure Represents a single log entry with level, content, timestamp and optional extra data
- MixinData
- Mixed data structure for instance data
- NativeClass
- Base class for native classes
- NativeClassOptions
- Unified management of native resources
- NativeClassUtils
- NativeObserverClass
- Base class for native observer classes
- NativeResource
- Unified management of native resources
- PackClass
- Base class for pack classes
- PackClassInterface
- Pack class interface
- PackObserverClass
- Base class for pack observer classes
- PackObserverInterface
- Pack observer interface
- ReturnParams
- Return parameters from API calls
- Tracer
- Performance tracing utility for monitoring API calls and callbacks
- TraceSpan
- Represents a single tracing span with timing information
Enums
- ArgType
- Argument type enumeration Defines different types of arguments that can be passed between native and Dart
- CallType
- Call type enumeration Defines different types of API calls between native and Dart
- InstanceType
- Instance creation type enumeration
- LogLevel
- Log level enumeration Defines different levels of logging with corresponding numeric values Higher values indicate more severe log levels
- ReturnStatus
- Return status enumeration Represents the result status of an API call
Mixins
- NativeClassMixin
- Native Class mixin
Constants
- DEFAULT_BRIDGE_KEY → const String
Properties
- logger → LoggerImpl
-
Global logger instance
final
- tracer → Tracer
-
Global tracer instance
final
Functions
-
getBridge(
[String? bridgekey]) → DartBridge - Get global Bridge instance
-
getGlobalMessageClient(
[String? bridgekey]) → MessageClient - Global message client instance Get global message client instance
-
isPrimitiveValue(
dynamic value) → bool - Check if value is primitive type
-
packObject<
T> (dynamic receiver, T factory()) → T - Wrap native object into specified type instance T is the target type receiver is the native object factory is the constructor of target type
-
unpackObject<
T> (dynamic instance) → T
Typedefs
- Arg = dynamic
- Argument type definition
- EventListener = dynamic Function(dynamic args)
- Event listener function type
- Handler = Function
- Handler function type definition
-
LoggerConsumer
= Future<
void> Function(LogMessage message) - Log consumer function type Defines the signature for functions that can consume log messages Used for custom log handling implementations
- Service = dynamic
- Service type definition