#import <FlutterChannels.h>
A channel for communicating with the Flutter side using invocation of asynchronous methods.
Definition at line 220 of file FlutterChannels.h.
◆ initWithName:binaryMessenger:codec: - (instancetype) initWithName: (NSString *) name binaryMessenger: (NSObject< FlutterBinaryMessenger > *) messenger codec: (NSObject< FlutterMethodCodec > *) codecInitializes a FlutterMethodChannel
with the specified name, binary messenger, and method codec.
The channel name logically identifies the channel; identically named channels interfere with each other's communication.
The binary messenger is a facility for sending raw, binary messages to the Flutter side. This protocol is implemented by FlutterEngine
and FlutterViewController
.
Initializes a FlutterMethodChannel
with the specified name, binary messenger, method codec, and task queue.
The channel name logically identifies the channel; identically named channels interfere with each other's communication.
The binary messenger is a facility for sending raw, binary messages to the Flutter side. This protocol is implemented by FlutterEngine
and FlutterViewController
.
Invokes the specified Flutter method with the specified arguments, expecting no results.
Invokes the specified Flutter method with the specified arguments, expecting an asynchronous result.
FlutterError
instance, if the method call resulted in an error on the Flutter side. Will be FlutterMethodNotImplemented
, if the method called was not implemented on the Flutter side. Any other value, including nil
, should be interpreted as successful results.
Creates a FlutterMethodChannel
with the specified name and binary messenger.
The channel name logically identifies the channel; identically named channels interfere with each other's communication.
The binary messenger is a facility for sending raw, binary messages to the Flutter side. This protocol is implemented by FlutterEngine
and FlutterViewController
.
The channel uses FlutterStandardMethodCodec
to encode and decode method calls and result envelopes.
Creates a FlutterMethodChannel
with the specified name, binary messenger, and method codec.
The channel name logically identifies the channel; identically named channels interfere with each other's communication.
The binary messenger is a facility for sending raw, binary messages to the Flutter side. This protocol is implemented by FlutterEngine
and FlutterViewController
.
Adjusts the number of messages that will get buffered when sending messages to channels that aren't fully set up yet. For example, the engine isn't running yet or the channel's message handler isn't set up on the Dart side yet.
◆ setMethodCallHandler:Registers a handler for method calls from the Flutter side.
Replaces any existing handler. Use a nil
handler for unregistering the existing handler.
The documentation for this class was generated from the following file:
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