blob: a7443f3ac96e697b66e81d6910b7f1f08785e7d4 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Flutter/Flutter.h>
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
typedef id _Nullable (^HandlerBinaryMessengerHandler)(NSArray *_Nonnull args);
/// A FlutterBinaryMessenger that calls a supplied method when a call is
/// invoked.
@interface HandlerBinaryMessenger : NSObject <FlutterBinaryMessenger>
- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithCodec:(NSObject<FlutterMessageCodec> *)codec
handler:(HandlerBinaryMessengerHandler)handler;
@end
NS_ASSUME_NONNULL_END