BinaryMessages class

Sends binary messages to and receives binary messages from platform plugins.

This class has been deprecated in favor of defaultBinaryMessenger. New code should not use BinaryMessages.

See also:

Annotations
  • @Deprecated('This class, which was just a collection of static methods, has been deprecated in favor of BinaryMessenger, and its default implementation, defaultBinaryMessenger.')

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Static Methods

handlePlatformMessage(String channel, ByteData data, PlatformMessageResponseCallback callback) Future<void>
Calls the handler registered for the given channel. [...]
@Deprecated('Use defaultBinaryMessenger.handlePlatformMessage instead.')
send(String channel, ByteData message) Future<ByteData>
Send a binary message to the platform plugins on the given channel. [...]
@Deprecated('Use defaultBinaryMessenger.send instead.')
setMessageHandler(String channel, Future<ByteData> handler(ByteData message)) → void
Set a callback for receiving messages from the platform plugins on the given channel, without decoding them. [...]
@Deprecated('Use defaultBinaryMessenger.setMessageHandler instead.')
setMockMessageHandler(String channel, Future<ByteData> handler(ByteData message)) → void
Set a mock callback for intercepting messages from the send* methods on this class, on the given channel, without decoding them. [...]
@Deprecated('Use defaultBinaryMessenger.setMockMessageHandler instead.')