Swiftgram/LegacyComponents/TGCameraMainView.h
Ilya Laktyushin 04a9ce1abb no message
2018-02-21 14:46:20 +03:00

97 lines
3.1 KiB
Objective-C

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <LegacyComponents/PGCamera.h>
@class SSignal;
@class TGModernButton;
@class TGCameraShutterButton;
@class TGCameraModeControl;
@class TGCameraFlipButton;
@class TGCameraTimeCodeView;
@class TGCameraZoomView;
@class TGCameraSegmentsView;
@interface TGCameraMainView : UIView
{
UIInterfaceOrientation _interfaceOrientation;
TGModernButton *_cancelButton;
TGModernButton *_doneButton;
TGCameraShutterButton *_shutterButton;
TGCameraModeControl *_modeControl;
TGCameraFlipButton *_flipButton;
TGCameraTimeCodeView *_timecodeView;
TGCameraSegmentsView *_segmentsView;
TGCameraZoomView *_zoomView;
}
@property (nonatomic, copy) void(^cameraFlipped)(void);
@property (nonatomic, copy) bool(^cameraShouldLeaveMode)(PGCameraMode mode);
@property (nonatomic, copy) void(^cameraModeChanged)(PGCameraMode mode);
@property (nonatomic, copy) void(^flashModeChanged)(PGCameraFlashMode mode);
@property (nonatomic, copy) void(^focusPointChanged)(CGPoint point);
@property (nonatomic, copy) void(^expositionChanged)(CGFloat value);
@property (nonatomic, copy) void(^shutterPressed)(bool fromHardwareButton);
@property (nonatomic, copy) void(^shutterReleased)(bool fromHardwareButton);
@property (nonatomic, copy) void(^cancelPressed)(void);
@property (nonatomic, copy) void(^donePressed)(void);
@property (nonatomic, copy) void(^resultPressed)(void);
@property (nonatomic, copy) void (^deleteSegmentButtonPressed)(void);
@property (nonatomic, copy) NSTimeInterval(^requestedVideoRecordingDuration)(void);
@property (nonatomic, assign) CGRect previewViewFrame;
- (void)setCameraMode:(PGCameraMode)mode;
- (void)updateForCameraModeChangeWithPreviousMode:(PGCameraMode)previousMode;
- (void)updateForCameraModeChangeAfterResize;
- (void)setFlashMode:(PGCameraFlashMode)mode;
- (void)setFlashActive:(bool)active;
- (void)setFlashUnavailable:(bool)unavailable;
- (void)setHasFlash:(bool)hasFlash;
- (void)setHasZoom:(bool)hasZoom;
- (void)setZoomLevel:(CGFloat)zoomLevel displayNeeded:(bool)displayNeeded;
- (void)zoomChangingEnded;
- (void)setHasModeControl:(bool)hasModeControl;
- (void)setShutterButtonHighlighted:(bool)highlighted;
- (void)setShutterButtonEnabled:(bool)enabled;
- (void)setDoneButtonHidden:(bool)hidden animated:(bool)animated;
- (void)shutterButtonPressed;
- (void)shutterButtonReleased;
- (void)flipButtonPressed;
- (void)cancelButtonPressed;
- (void)doneButtonPressed;
- (void)setRecordingVideo:(bool)recordingVideo animated:(bool)animated;
- (void)setInterfaceHiddenForVideoRecording:(bool)hidden animated:(bool)animated;
- (void)setStartedSegmentCapture;
- (void)setCurrentSegmentLength:(CGFloat)length;
- (void)setCommitSegmentCapture;
- (void)previewLastSegment;
- (void)removeLastSegment;
- (void)showMomentCaptureDismissWarningWithCompletion:(void (^)(bool dismiss))completion;
- (void)setResultSignal:(SSignal *)signal;
- (void)hideResultUntilNext;
- (UIInterfaceOrientation)interfaceOrientation;
- (void)setInterfaceOrientation:(UIInterfaceOrientation)orientation animated:(bool)animated;
- (void)layoutPreviewRelativeViews;
@end