Flutter Engine
FlutterChannels.mm File Reference
#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterChannels.h"

Go to the source code of this file.

Functions

static void ResizeChannelBuffer (NSObject< FlutterBinaryMessenger > *binaryMessenger, NSString *channel, NSInteger newSize)
 

Variables

static NSString *const FlutterChannelBuffersChannel = @"@"dev.flutter/channel-buffers"
 
NSString * _name
 
NSObject< FlutterMessageCodec > * _codec
 
FlutterBinaryMessengerConnection _connection
 
NSObject const * FlutterMethodNotImplemented = [NSObject new]
 
NSObject const * FlutterEndOfEventStream = [NSObject new]
 

Function Documentation

◆ ResizeChannelBuffer()

static void ResizeChannelBuffer ( NSObject< FlutterBinaryMessenger > *  binaryMessenger,
NSString *  channel,
NSInteger  newSize 
)
static

Definition at line 11 of file FlutterChannels.mm.

References FlutterChannelBuffersChannel.

Referenced by FlutterBasicMessageChannel::resizeChannelBuffer:, and FlutterMethodChannel::resizeChannelBuffer:.

13  {
14  NSString* messageString = [NSString stringWithFormat:@"resize\r%@\r%@", channel, @(newSize)];
15  NSData* message = [messageString dataUsingEncoding:NSUTF8StringEncoding];
16  [binaryMessenger sendOnChannel:FlutterChannelBuffersChannel message:message];
17 }
static NSString *const FlutterChannelBuffersChannel

Variable Documentation

◆ _codec

◆ _connection

◆ _name

◆ FlutterChannelBuffersChannel

NSString* const FlutterChannelBuffersChannel = @"@"dev.flutter/channel-buffers"
static

Definition at line 9 of file FlutterChannels.mm.

Referenced by ResizeChannelBuffer().

◆ FlutterEndOfEventStream

NSObject const* FlutterEndOfEventStream = [NSObject new]

A constant used with FlutterEventChannel to indicate end of stream.

Definition at line 264 of file FlutterChannels.mm.

Referenced by FlutterEventChannel::initWithName:binaryMessenger:codec:.

◆ FlutterMethodNotImplemented

NSObject const* FlutterMethodNotImplemented = [NSObject new]