5 #ifndef FLUTTER_FLUTTERCHANNELS_H_
6 #define FLUTTER_FLUTTERCHANNELS_H_
55 + (instancetype)messageChannelWithName:(NSString*)name
72 + (instancetype)messageChannelWithName:(NSString*)name
90 - (instancetype)initWithName:(NSString*)name
110 - (instancetype)initWithName:(NSString*)name
121 - (void)sendMessage:(
id _Nullable)message;
130 - (void)sendMessage:(
id _Nullable)message reply:(
FlutterReply _Nullable)callback;
151 + (void)resizeChannelWithName:(NSString*)name
153 size:(NSInteger)newSize;
162 - (void)resizeChannelBuffer:(NSInteger)newSize;
173 + (void)setWarnsOnOverflow:(BOOL)warns
174 forChannelWithName:(NSString*)name
184 - (void)setWarnsOnOverflow:(BOOL)warns;
238 + (instancetype)methodChannelWithName:(NSString*)name
255 + (instancetype)methodChannelWithName:(NSString*)name
257 codec:(NSObject<FlutterMethodCodec>*)codec;
273 - (instancetype)initWithName:(NSString*)name
275 codec:(NSObject<FlutterMethodCodec>*)codec;
293 - (instancetype)initWithName:(NSString*)name
295 codec:(NSObject<FlutterMethodCodec>*)codec
310 - (void)invokeMethod:(NSString*)method arguments:(
id _Nullable)arguments;
325 - (void)invokeMethod:(NSString*)method
326 arguments:(
id _Nullable)arguments
343 - (void)resizeChannelBuffer:(NSInteger)newSize;
373 - (
FlutterError* _Nullable)onListenWithArguments:(
id _Nullable)arguments
389 - (
FlutterError* _Nullable)onCancelWithArguments:(
id _Nullable)arguments;
418 + (instancetype)eventChannelWithName:(NSString*)name
435 + (instancetype)eventChannelWithName:(NSString*)name
437 codec:(NSObject<FlutterMethodCodec>*)codec;
453 - (instancetype)initWithName:(NSString*)name
455 codec:(NSObject<FlutterMethodCodec>*)codec;
473 - (instancetype)initWithName:(NSString*)name
475 codec:(NSObject<FlutterMethodCodec>*)codec
489 #endif // FLUTTER_FLUTTERCHANNELS_H_