FlutterMessageListener.h 538 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_FLUTTERMESSAGELISTENER_H_
#define FLUTTER_FLUTTERMESSAGELISTENER_H_

#import <Foundation/Foundation.h>

#include "FlutterMacros.h"

FLUTTER_EXPORT
@protocol FlutterMessageListener<NSObject>

- (NSString*)didReceiveString:(NSString*)message;

17 18
@property(readonly, strong, nonatomic) NSString* messageName;

19 20 21
@end

#endif  // FLUTTER_FLUTTERMESSAGELISTENER_H_