#import #import "PGCamera.h" @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 (^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; - (UIInterfaceOrientation)interfaceOrientation; - (void)setInterfaceOrientation:(UIInterfaceOrientation)orientation animated:(bool)animated; - (void)layoutPreviewRelativeViews; @end