2014 snapchat source code
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.

27 lines
870 B

  1. //
  2. // SCFeatureImageCapture.h
  3. // SCCamera
  4. //
  5. // Created by Kristian Bauer on 4/18/18.
  6. //
  7. #import "SCFeature.h"
  8. #import <SCFoundation/SCFuture.h>
  9. @protocol SCFeatureImageCapture;
  10. @protocol SCFeatureImageCaptureDelegate <NSObject>
  11. - (void)featureImageCapture:(id<SCFeatureImageCapture>)featureImageCapture willCompleteWithImage:(UIImage *)image;
  12. - (void)featureImageCapture:(id<SCFeatureImageCapture>)featureImageCapture didCompleteWithError:(NSError *)error;
  13. - (void)featureImageCapturedDidComplete:(id<SCFeatureImageCapture>)featureImageCapture;
  14. @end
  15. /**
  16. SCFeature protocol for capturing an image.
  17. */
  18. @protocol SCFeatureImageCapture <SCFeature>
  19. @property (nonatomic, weak, readwrite) id<SCFeatureImageCaptureDelegate> delegate;
  20. @property (nonatomic, strong, readonly) SCPromise<UIImage *> *imagePromise;
  21. - (void)captureImage:(NSString *)captureSessionID;
  22. @end