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.

47 lines
1.7 KiB

  1. //
  2. // AVCameraViewEnums.h
  3. // SCCamera
  4. //
  5. // Copyright © 2016 Snapchat, Inc. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. /**
  9. The context specifies the way in which the camera is presented to the user.
  10. The controller can be configured a variety of ways depending on the context.
  11. */
  12. typedef NS_ENUM(NSUInteger, AVCameraViewControllerContext) {
  13. AVCameraViewControllerContextMainVC = 1,
  14. AVCameraViewControllerContextReply,
  15. AVCameraViewControllerContextDefault = AVCameraViewControllerContextReply,
  16. AVCameraViewControllerContextSnapAds,
  17. AVCameraViewControllerContextAddToStory,
  18. };
  19. typedef NS_ENUM(NSInteger, AVCameraViewType) {
  20. AVCameraViewNoReply = 0,
  21. AVCameraViewReplyLeft,
  22. AVCameraViewReplyRight,
  23. AVCameraViewChat,
  24. AVCameraViewReplyHydra,
  25. AVCameraViewSnapAds,
  26. AVCameraViewGalleryMadeWithLenses,
  27. AVCameraViewSnapConnectSnapKit,
  28. AVCameraViewSnappable
  29. };
  30. typedef NS_ENUM(NSUInteger, AVCameraViewControllerRecordingState) {
  31. AVCameraViewControllerRecordingStateDefault, // No capture activity
  32. AVCameraViewControllerRecordingStatePrepareRecording, // Preparing for recording with delay
  33. AVCameraViewControllerRecordingStateInitiatedRecording, // Actively recording
  34. AVCameraViewControllerRecordingStateTakingPicture, // Taking a still image
  35. AVCameraViewControllerRecordingStatePictureTaken, // Picture is taken
  36. AVCameraViewControllerRecordingStatePreview, // Preparing to present preview
  37. };
  38. typedef NS_ENUM(NSUInteger, SCCameraRecordingMethod) {
  39. SCCameraRecordingMethodCameraButton,
  40. SCCameraRecordingMethodVolumeButton,
  41. SCCameraRecordingMethodLensInitiated
  42. };