Flutter Engine
FlutterBinaryMessenger.h File Reference
#import <Foundation/Foundation.h>
#import "FlutterMacros.h"

Go to the source code of this file.

Classes

protocol  <FlutterBinaryMessenger >
 

Typedefs

typedef void(^ FlutterBinaryMessageHandler) (NSData *_Nullable message, FlutterBinaryReply reply)
 
typedef int64_t FlutterBinaryMessengerConnection
 

Variables

NS_ASSUME_NONNULL_BEGIN typedef void(^ FlutterBinaryReply )(NSData *_Nullable reply)
 

Typedef Documentation

◆ FlutterBinaryMessageHandler

typedef void(^ FlutterBinaryMessageHandler) (NSData *_Nullable message, FlutterBinaryReply reply)

A strategy for handling incoming binary messages from Flutter and to send asynchronous replies back to Flutter.

Parameters
messageThe message.
replyA callback for submitting an asynchronous reply to the sender.

Definition at line 30 of file FlutterBinaryMessenger.h.

◆ FlutterBinaryMessengerConnection

Definition at line 32 of file FlutterBinaryMessenger.h.

Variable Documentation

◆ FlutterBinaryReply

NS_ASSUME_NONNULL_BEGIN typedef void(^ FlutterBinaryReply) (NSData *_Nullable reply)

A message reply callback.

Used for submitting a binary reply back to a Flutter message sender. Also used in for handling a binary message reply received from Flutter.

Parameters
replyThe reply.

Referenced by FlutterBasicMessageChannel::initWithName:binaryMessenger:codec:, FlutterMethodChannel::initWithName:binaryMessenger:codec:, FlutterEventChannel::initWithName:binaryMessenger:codec:, FlutterBinaryMessengerRelay::initWithParent:, FlutterEngine::run, FlutterViewController::setFlutterViewDidRenderCallback:, and FlutterEngine::shutDownEngine.