#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterChannels.h"
Go to the source code of this file.
◆ ResizeChannelBuffer()
static void ResizeChannelBuffer |
( |
NSObject< FlutterBinaryMessenger > * |
binaryMessenger, |
|
|
NSString * |
channel, |
|
|
NSInteger |
newSize |
|
) |
| |
|
static |
Definition at line 15 of file FlutterChannels.mm.
17 {
18 NSCAssert(newSize >= 0, @"Channel buffer size must be non-negative");
19
20
21
22 NSArray*
args = @[ channel, @(
static_cast<int>(newSize)) ];
26 NSData*
message = [codec encodeMethodCall:resizeMethodCall];
28}
static NSString *const kResizeMethod
static FLUTTER_ASSERT_ARC NSString *const kFlutterChannelBuffersChannel
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
◆ SetMessageHandler()
Definition at line 50 of file FlutterChannels.mm.
54 {
55 if (taskQueue) {
56 NSCAssert([messenger respondsToSelector:@selector(setMessageHandlerOnChannel:
57 binaryMessageHandler:taskQueue:)],
58 @"");
59 return [messenger setMessageHandlerOnChannel:
name
60 binaryMessageHandler:handler
61 taskQueue:taskQueue];
62 } else {
63 return [messenger setMessageHandlerOnChannel:
name binaryMessageHandler:handler];
64 }
65}
DEF_SWITCHES_START aot vmservice shared library name
◆ SetWarnsOnOverflow()
Defines whether a channel should show warning messages when discarding messages due to overflow.
- Parameters
-
binaryMessenger | The binary messenger. |
channel | The channel name. |
warns | When false, the channel is expected to overflow and warning messages will not be shown. |
Definition at line 39 of file FlutterChannels.mm.
41 {
44 arguments:@[ channel, @(!warns) ]];
46 NSData*
message = [codec encodeMethodCall:overflowMethodCall];
48}
static NSString *const kOverflowMethod
◆ _codec
◆ _connection
◆ _name
Initial value:{
NSObject<FlutterBinaryMessenger>* _messenger
Definition at line 70 of file FlutterChannels.mm.
◆ _taskQueue
◆ kFlutterChannelBuffersChannel
FLUTTER_ASSERT_ARC NSString* const kFlutterChannelBuffersChannel = @"@"dev.flutter/channel-buffers" |
|
static |
◆ kOverflowMethod
NSString* const kOverflowMethod = @"@"overflow" |
|
static |
◆ kResizeMethod
NSString* const kResizeMethod = @"@"resize" |
|
static |