A named channel for communicating with platform plugins using asynchronous message passing.
Messages are encoded into binary before being sent, and binary messages received are decoded into Dart values. The MessageCodec used must be compatible with the one used by the platform plugin. This can be achieved by creating a basic message channel counterpart of this channel on the platform side. The Dart type of messages sent and received is T
, but only the values supported by the specified MessageCodec can be used. The use of unsupported values should be considered programming errors, and will result in exceptions being thrown. The null message is supported for all codecs.
The logical identity of the channel is given by its name. Identically named channels will interfere with each other's communication.
All BasicMessageChannels provided by the Flutter framework guarantee FIFO ordering. Applications can assume messages sent via a built-in BasicMessageChannel are delivered in the same order as they're sent.
See: flutter.dev/to/platform-channels/
name
, codec
and binaryMessenger
.
const
no setter
final
no setterinherited
final
no setterinherited
Available on BasicMessageChannel<T>, provided by the TestBasicMessageChannelExtension extension
Shim for TestDefaultBinaryMessenger.checkMockMessageHandler.inherited
message
to the platform plugins on this channel.
Available on BasicMessageChannel<T>, provided by the TestBasicMessageChannelExtension extension
Shim for TestDefaultBinaryMessenger.setMockDecodedMessageHandler.inherited
inherited
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4