Flutter Engine
The Flutter Engine
|
#import <FlutterBinaryMessenger.h>
Instance Methods | |
(NSObject< FlutterTaskQueue > *) | - makeBackgroundTaskQueue |
TODO(gaaclarke): Remove optional when macos supports Background Platform Channels. More... | |
(FlutterBinaryMessengerConnection) | - setMessageHandlerOnChannel:binaryMessageHandler:taskQueue: |
(void) | - sendOnChannel:message: |
(void) | - sendOnChannel:message:binaryReply: |
(FlutterBinaryMessengerConnection) | - setMessageHandlerOnChannel:binaryMessageHandler: |
(void) | - cleanUpConnection: |
A facility for communicating with the Flutter side using asynchronous message passing with binary messages.
Implementated by:
FlutterBasicMessageChannel
, which supports communication using structured messages.FlutterMethodChannel
, which supports communication using asynchronous method calls.FlutterEventChannel
, which supports commuication using event streams. Definition at line 49 of file FlutterBinaryMessenger.h.
|
required |
Clears out a channel's message handler if that handler is still the one that was created as a result of setMessageHandlerOnChannel:binaryMessageHandler:
.
connection | The result from setMessageHandlerOnChannel:binaryMessageHandler: . |
Reimplemented in FlutterBinaryMessengerRelay, MockBinaryMessenger, FlutterEngine, and FlutterViewController.
|
optional |
TODO(gaaclarke): Remove optional when macos supports Background Platform Channels.
Reimplemented in FlutterBinaryMessengerRelay, FlutterEngine, and FlutterViewController.
|
required |
Sends a binary message to the Flutter side on the specified channel, expecting no reply.
channel | The channel name. |
message | The message. |
Reimplemented in MockBinaryMessenger.
|
required |
Sends a binary message to the Flutter side on the specified channel, expecting an asynchronous reply.
channel | The channel name. |
message | The message. |
callback | A callback for receiving a reply. |
Reimplemented in MockBinaryMessenger, and FlutterEngine.
|
required |
Registers a message handler for incoming binary messages from the Flutter side on the specified channel.
Replaces any existing handler. Use a nil
handler for unregistering the existing handler.
channel | The channel name. |
handler | The message handler. |
Reimplemented in MockBinaryMessenger.
|
optional |
Reimplemented in FlutterViewController.