Swiftgram/LegacyComponents/TGWallpaperController.h
Peter Iakovlev 3c1b5d3ec2 no message
2018-02-08 14:22:19 +04:00

30 lines
946 B
Objective-C

#import <LegacyComponents/TGViewController.h>
#import <LegacyComponents/LegacyComponentsContext.h>
#import <LegacyComponents/ASWatcher.h>
@class TGWallpaperInfo;
@class TGWallpaperController;
@class TGPresentation;
@protocol TGWallpaperControllerDelegate <NSObject>
@optional
- (void)wallpaperController:(TGWallpaperController *)wallpaperController didSelectWallpaperWithInfo:(TGWallpaperInfo *)wallpaperInfo;
@end
@interface TGWallpaperController : TGViewController <ASWatcher>
@property (nonatomic, strong) ASHandle *actionHandle;
@property (nonatomic, weak) id<TGWallpaperControllerDelegate> delegate;
@property (nonatomic) bool enableWallpaperAdjustment;
@property (nonatomic, strong) TGPresentation *presentation;
@property (nonatomic, copy) void (^customDismiss)();
- (instancetype)initWithContext:(id<LegacyComponentsContext>)context wallpaperInfo:(TGWallpaperInfo *)wallpaperInfo thumbnailImage:(UIImage *)thumbnailImage;
@end