1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-03 09:57:46 +01:00
Telegram/Telegraph/TGWebSearchController.h

29 lines
986 B
C
Raw Normal View History

2015-10-01 18:19:52 +02:00
#import "TGViewController.h"
@class TGImageInfo;
2016-02-25 01:03:51 +01:00
@class TGSuggestionContext;
2015-10-01 18:19:52 +02:00
@interface TGWebSearchController : TGViewController
2016-02-25 01:03:51 +01:00
@property (nonatomic, copy) void (^avatarCompletionBlock)(UIImage *);
@property (nonatomic, copy) void (^completionBlock)(TGWebSearchController *sender);
2015-10-01 18:19:52 +02:00
@property (nonatomic, copy) void (^dismiss)(void);
2016-02-25 01:03:51 +01:00
@property (nonatomic, weak) TGNavigationController *parentNavigationController;
2015-10-01 18:19:52 +02:00
@property (nonatomic, readonly) bool avatarSelection;
2016-02-25 01:03:51 +01:00
@property (nonatomic, assign) bool captionsEnabled;
@property (nonatomic, strong) TGSuggestionContext *suggestionContext;
2015-10-01 18:19:52 +02:00
2016-02-25 01:03:51 +01:00
- (instancetype)initForAvatarSelection:(bool)avatarSelection embedded:(bool)embedded;
2015-10-01 18:19:52 +02:00
- (NSArray *)selectedItemSignals:(id (^)(id, NSString *))imageDescriptionGenerator;
+ (void)clearRecents;
+ (void)addRecentSelectedItems:(NSArray *)items;
2016-02-25 01:03:51 +01:00
- (void)presentEmbeddedInController:(UIViewController *)controller animated:(bool)animated;
- (void)dismissEmbeddedAnimated:(bool)animated;
2015-10-01 18:19:52 +02:00
@end