mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
31 lines
758 B
Objective-C
31 lines
758 B
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
@class TGCameraPreviewView;
|
|
@class TGMenuSheetPallete;
|
|
|
|
@interface TGAttachmentCameraView : UIView
|
|
|
|
@property (nonatomic, copy) void (^pressed)(void);
|
|
@property (nonatomic, strong) TGMenuSheetPallete *pallete;
|
|
|
|
- (instancetype)initForSelfPortrait:(bool)selfPortrait videoModeByDefault:(bool)videoModeByDefault;
|
|
|
|
@property (nonatomic, readonly) bool previewViewAttached;
|
|
- (void)detachPreviewView;
|
|
- (void)attachPreviewViewAnimated:(bool)animated;
|
|
- (void)willAttachPreviewView;
|
|
|
|
- (void)startPreview;
|
|
- (void)stopPreview;
|
|
- (void)resumePreview;
|
|
- (void)pausePreview;
|
|
|
|
- (void)removeCorners;
|
|
|
|
- (void)setZoomedProgress:(CGFloat)progress;
|
|
|
|
- (void)saveStartImage:(void (^)(void))completion;
|
|
- (TGCameraPreviewView *)previewView;
|
|
|
|
@end
|