-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLFMCameraViewController.h
More file actions
42 lines (33 loc) · 1.3 KB
/
LFMCameraViewController.h
File metadata and controls
42 lines (33 loc) · 1.3 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
//
// AFECameraViewController.h
// AVFoundationExample
//
// Created by Luis Fernando Mata on 27/9/15.
// Copyright © 2015 Luis Fernando Mata. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "LFMCameraView.h"
@interface LFMCameraViewController : UIViewController
typedef enum FlashConfiguration
{
LFMFlashConfigurationAlways,
LFMFlashConfigurationAutomatic,
LFMFlashConfigurationDeactivated
} FlashConfiguration;
- (void)setCameraView: (LFMCameraView *) cameraView;
#pragma mark Camera actions
- (void)focusAndExposeTap:(UIGestureRecognizer *)gestureRecognizer;
- (void)changeCamera;
- (void) setFrontCameraAsDefault;
- (FlashConfiguration) cameraFlashConfiguration;
- (void) setFlashConfiguration: (FlashConfiguration) newConfiguration;
- (BOOL) isCameraAvailable;
#pragma Photo actions
- (void) takeStillPictureWithSuccessBlock: (void (^)(UIImage *cameraImage))success forFailure: (void (^)(NSError *error))failure;
- (void) takeStillPictureSavingInImagesWithSuccessBlock: (void (^)(UIImage *cameraImage))success forFailure: (void (^)(NSError *error))failure;
#pragma Video actions
- (BOOL) isCameraRecording;
- (void)toggleMovieRecording;
#pragma mark Save files
- (void) saveImage: (UIImage *) image successBlock: (void (^)(void)) successBlock forFailure: (void (^)(NSError *error))failure;
@end