|
38 | 38 | /** |
39 | 39 | @return delegate cofroming to `IRLCameraViewProtocol` |
40 | 40 | */ |
41 | | -@property (weak) id<IRLCameraViewProtocol> delegate; |
| 41 | +@property (weak) id<IRLCameraViewProtocol> _Nullable delegate; |
42 | 42 |
|
43 | 43 | /** |
44 | 44 | @return minimumConfidenceForFullDetection Integer for 0 to 100 defining what is the our minimum confidence to detect the scan. Default 66. |
|
51 | 51 | @property (nonatomic, readonly) NSUInteger maximumConfidenceForFullDetection; // Default 100 |
52 | 52 |
|
53 | 53 | /** |
54 | | - @return The color use for overlay. |
| 54 | + @return The color use for overlay. Default is [UIColor red] |
55 | 55 | */ |
56 | | -@property (readwrite, strong, nonatomic) UIColor *overlayColor; |
| 56 | +@property (readwrite, strong, nonatomic) UIColor * _Nonnull overlayColor; |
57 | 57 |
|
58 | 58 | /** |
59 | 59 | @return A quick corrected image (use for preview). |
60 | 60 | */ |
61 | | -- (UIImage*)latestCorrectedUIImage; |
| 61 | +- (UIImage* _Nullable)latestCorrectedUIImage; |
62 | 62 |
|
63 | 63 | /** |
64 | 64 | @return enableBorderDetection Auto detect border |
|
99 | 99 | @param point a Point where to focuse |
100 | 100 | @param completionHandler a block taking no parameter to be exctuted when done |
101 | 101 | */ |
102 | | -- (void)focusAtPoint:(CGPoint)point completionHandler:(void(^)(void))completionHandler; |
| 102 | +- (void)focusAtPoint:(CGPoint)point completionHandler:(void(^ _Nullable)(void))completionHandler; |
103 | 103 |
|
104 | 104 | /** |
105 | 105 | @brief Force focus at a particular point. |
106 | 106 | |
| 107 | + @warning If for some reason the AVCaptureConnection could not be found (the view disapear or app resign active, your capture image will be nil). |
| 108 | + |
107 | 109 | @param completionHandler a block retruning 1 parameter image to be exctuted when done |
108 | 110 | */ |
109 | | -- (void)captureImageWithCompletionHander:(void(^)(UIImage* image))completionHandler; |
| 111 | +- (void)captureImageWithCompletionHander:(void(^_Nonnull)(UIImage* _Nullable image))completionHandler; |
110 | 112 |
|
111 | 113 | /** |
112 | 114 | @brief Prepare the view for orientation changes (stop the camera) |
|
130 | 132 | @param view The IRLCameraView calling the delegate |
131 | 133 | @param confidence A value between 0 .. 100% indicating the confidence of the detection |
132 | 134 | */ |
133 | | --(void)didDetectRectangle:(IRLCameraView*)view withConfidence:(NSUInteger)confidence; |
| 135 | +-(void)didDetectRectangle:(IRLCameraView* _Nonnull)view withConfidence:(NSUInteger)confidence; |
134 | 136 |
|
135 | 137 | /** |
136 | 138 | @brief Call when the view gain the full confiende for the detection (stayed long enough over the [IRLCameraView minimumConfidenceForFullDetection] and close enough from [IRLCameraView maximumConfidenceForFullDetection] |
137 | 139 | |
138 | 140 | @param view The IRLCameraView calling the delegate |
139 | 141 | */ |
140 | | --(void)didGainFullDetectionConfidence:(IRLCameraView*)view; |
| 142 | +-(void)didGainFullDetectionConfidence:(IRLCameraView* _Nonnull)view; |
141 | 143 |
|
142 | 144 | /** |
143 | 145 | @brief Call when the view lostconfiende for the detection got bellow [IRLCameraView minimumConfidenceForFullDetection] |
144 | 146 | |
145 | 147 | @param view The IRLCameraView calling the delegate |
146 | 148 | */ |
147 | | --(void)didLostConfidence:(IRLCameraView*)view; |
| 149 | +-(void)didLostConfidence:(IRLCameraView* _Nonnull)view; |
148 | 150 |
|
149 | 151 | @end |
0 commit comments