You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

39 lines
903 B

//
// CACameraSessionDelegate.h
//
// Created by Christopher Cohen & Gabriel Alvarado on 1/23/15.
// Copyright (c) 2015 Gabriel Alvarado. All rights reserved.
//
#import <UIKit/UIKit.h>
///Protocol Definition
@protocol CACameraSessionDelegate <NSObject>
@optional - (void)didCaptureImage:(UIImage *)image;
@optional - (void)didCaptureImageWithData:(NSData *)imageData;
@optional - (void)didDismiss;
@end
@interface CameraSessionView : UIView
//Delegate Property
@property (nonatomic, weak) id <CACameraSessionDelegate> delegate;
@property (nonatomic, assign) BOOL hiddenTopBar;
@property (nonatomic, assign) BOOL hiddenShutter;
//API Functions
- (void)setTopBarColor:(UIColor *)topBarColor;
- (void)hideFlashButton;
- (void)hideCameraToggleButton;
- (void)hideDismissButton;
- (void)onTapShutterButton;
- (void)onTapFlashButton;
- (void)onTapToggleButton;
- (void)onTapDismissButton;
@end