nativeshell_core library
Classes
- FinalizableHandle
-
Proxy object that is tied to a Rust
FinalizableHandle
. When this Dart instance gets garbage collected rust side will be notified of it. - MessageChannel
- MessageChannel can be used to communicate with its counterpart (handler) written in Rust. This class is for low level message sending, you probably want to use NativeMethodChannel and NativeEventChannel, which are built on top of it.
- MessageChannelContext
- Every MessageChannel (and on top of it NativeMethodChannel and NativeEventChannel) live within a MessageChannelContext.
- MockMessageChannelContext
- Context inteded for testing message channels. Can also be used for dart-only implementation (i.e. flutter web)
- NativeEventChannel
- NativeMethodChannel
Extensions
Typedefs
-
MessageChannelContextInitFunction
= Int64 Function(Pointer<
Void> ) - MessageChannelHandler = FutureOr Function(dynamic message)
- MessageSender = Future Function(dynamic message)
- MethodCallHandler = FutureOr Function(MethodCall call)