1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 17:38:07 +01:00
Telegram/Telegraph/TGWebSearchController.h
2016-02-25 01:03:51 +01:00

29 lines
986 B
Objective-C

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