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.

66 lines
2.6 KiB

  1. //
  2. // SCCoreCameraLogger.h
  3. // Snapchat
  4. //
  5. // Created by Chao Pang on 3/6/18.
  6. //
  7. #import <Foundation/Foundation.h>
  8. /**
  9. * CAMERA_CREATION_DELAY event
  10. */
  11. extern NSString *const kSCCameraCreationDelayEventStartTimeKey;
  12. extern NSString *const kSCCameraCreationDelayEventStartTimeAdjustmentKey;
  13. extern NSString *const kSCCameraCreationDelayEventEndTimeKey;
  14. extern NSString *const kSCCameraCreationDelayEventCaptureSessionIdKey;
  15. extern NSString *const kSCCameraCreationDelayEventFilterLensIdKey;
  16. extern NSString *const kSCCameraCreationDelayEventNightModeDetectedKey;
  17. extern NSString *const kSCCameraCreationDelayEventNightModeActiveKey;
  18. extern NSString *const kSCCameraCreationDelayEventCameraApiKey;
  19. extern NSString *const kSCCameraCreationDelayEventCameraLevelKey;
  20. extern NSString *const kSCCameraCreationDelayEventCameraPositionKey;
  21. extern NSString *const kSCCameraCreationDelayEventCameraOpenSourceKey;
  22. extern NSString *const kSCCameraCreationDelayEventContentDurationKey;
  23. extern NSString *const kSCCameraCreationDelayEventMediaTypeKey;
  24. extern NSString *const kSCCameraCreationDelayEventStartTypeKey;
  25. extern NSString *const kSCCameraCreationDelayEventStartSubTypeKey;
  26. extern NSString *const kSCCameraCreationDelayEventAnalyticsVersion;
  27. @interface SCCoreCameraLogger : NSObject
  28. + (instancetype)sharedInstance;
  29. /**
  30. * CAMERA_CREATION_DELAY event
  31. */
  32. - (void)logCameraCreationDelayEventStartWithCaptureSessionId:(NSString *)captureSessionId
  33. filterLensId:(NSString *)filterLensId
  34. underLowLightCondition:(BOOL)underLowLightCondition
  35. isNightModeActive:(BOOL)isNightModeActive
  36. isBackCamera:(BOOL)isBackCamera
  37. isMainCamera:(BOOL)isMainCamera;
  38. - (void)logCameraCreationDelaySplitPointRecordingGestureFinished;
  39. - (void)logCameraCreationDelaySplitPointStillImageCaptureApi:(NSString *)api;
  40. - (void)logCameraCreationDelaySplitPointPreCaptureOperationRequested;
  41. - (void)logCameraCreationDelaySplitPointPreCaptureOperationFinishedAt:(CFTimeInterval)time;
  42. - (void)updatedCameraCreationDelayWithContentDuration:(CFTimeInterval)duration;
  43. - (void)logCameraCreationDelaySplitPointCameraCaptureContentReady;
  44. - (void)logCameraCreationDelaySplitPointPreviewFinishedPreparation;
  45. - (void)logCameraCreationDelaySplitPointPreviewDisplayedForImage:(BOOL)isImage;
  46. - (void)logCameraCreationDelaySplitPointPreviewAnimationComplete:(BOOL)isImage;
  47. - (void)logCameraCreationDelaySplitPointPreviewFirstFramePlayed:(BOOL)isImage;
  48. - (void)cancelCameraCreationDelayEvent;
  49. @end