mirror of
https://github.com/flutter/samples.git
synced 2026-07-15 13:32:35 +00:00
Added iOS example for add-to-app Pigeon (#722)
This commit is contained in:
32
add_to_app/books/ios_books/IosBooks/api.h
Normal file
32
add_to_app/books/ios_books/IosBooks/api.h
Normal file
@@ -0,0 +1,32 @@
|
||||
// Autogenerated from Pigeon (v0.1.17), do not edit directly.
|
||||
// See also: https://pub.dev/packages/pigeon
|
||||
#import <Foundation/Foundation.h>
|
||||
@protocol FlutterBinaryMessenger;
|
||||
@class FlutterError;
|
||||
@class FlutterStandardTypedData;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class BKBook;
|
||||
|
||||
@interface BKBook : NSObject
|
||||
@property(nonatomic, copy, nullable) NSString * title;
|
||||
@property(nonatomic, copy, nullable) NSString * subtitle;
|
||||
@property(nonatomic, copy, nullable) NSString * author;
|
||||
@property(nonatomic, copy, nullable) NSString * summary;
|
||||
@property(nonatomic, copy, nullable) NSString * publishDate;
|
||||
@property(nonatomic, strong, nullable) NSNumber * pageCount;
|
||||
@end
|
||||
|
||||
@interface BKFlutterBookApi : NSObject
|
||||
- (instancetype)initWithBinaryMessenger:(id<FlutterBinaryMessenger>)binaryMessenger;
|
||||
- (void)displayBookDetails:(BKBook*)input completion:(void(^)(NSError* _Nullable))completion;
|
||||
@end
|
||||
@protocol BKHostBookApi
|
||||
-(void)cancel:(FlutterError *_Nullable *_Nonnull)error;
|
||||
-(void)finishEditingBook:(BKBook*)input error:(FlutterError *_Nullable *_Nonnull)error;
|
||||
@end
|
||||
|
||||
extern void BKHostBookApiSetup(id<FlutterBinaryMessenger> binaryMessenger, id<BKHostBookApi> _Nullable api);
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user