Repository navigation
Expand file tree
/
Copy pathSCRecorderToolsView.h
More file actions
85 lines (68 loc) · 1.84 KB
/
Copy pathSCRecorderToolsView.h
File metadata and controls
85 lines (68 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
//
// SCRecorderToolsView.h
// SCRecorder
//
// Created by Simon CORSIN on 16/02/15.
// Copyright (c) 2015 rFlex. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SCRecorder.h"
@class SCRecorder;
@interface SCRecorderToolsView : UIView
/**
The instance of the SCRecorder to use.
*/
@property (strong, nonatomic) SCRecorder *recorder;
/**
The outside image used when focusing.
*/
@property (strong, nonatomic) UIImage *outsideFocusTargetImage;
/**
The inside image used when focusing.
*/
@property (strong, nonatomic) UIImage *insideFocusTargetImage;
/**
The size of the focus target.
*/
@property (assign, nonatomic) CGSize focusTargetSize;
/**
The minimum zoom allowed for the pinch to zoom.
Default is 1
*/
@property (assign, nonatomic) CGFloat minZoomFactor;
/**
The maximum zoom allowed for the pinch to zoom.
Default is 4
*/
@property (assign, nonatomic) CGFloat maxZoomFactor;
/**
Whether the tap to focus should be enabled.
*/
@property (assign, nonatomic) BOOL tapToFocusEnabled;
/**
Whether the double tap to reset the focus should be enabled.
*/
@property (assign, nonatomic) BOOL doubleTapToResetFocusEnabled;
/**
Whether the pinch to zoom should be enabled.
*/
@property (assign, nonatomic) BOOL pinchToZoomEnabled;
/**
Whether the SCRecorderToolsView should show the focus animation automatically
when the focusing state changes. If set to NO, you will have to call
"showFocusAnimation" and "hideFocusAnimation" yourself.
*/
@property (assign, nonatomic) BOOL showsFocusAnimationAutomatically;
/**
Manually show the focus animation.
This method is called automatically if showsFocusAnimationAutomatically
is set to YES.
*/
- (void)showFocusAnimation;
/**
Manually hide the focus animation.
This method is called automatically if showsFocusAnimationAutomatically
is set to YES.
*/
- (void)hideFocusAnimation;
@end