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.

29 lines
771 B

  1. //
  2. // SCCaptureStateTransitionBookKeeper.h
  3. // Snapchat
  4. //
  5. // Created by Lin Jia on 10/27/17.
  6. //
  7. //
  8. #import "SCCaptureStateUtil.h"
  9. #import <Foundation/Foundation.h>
  10. /*
  11. Book keeper is used to record every state transition, and every illegal API call.
  12. */
  13. @interface SCCaptureStateMachineBookKeeper : NSObject
  14. - (void)stateTransitionFrom:(SCCaptureStateMachineStateId)fromId
  15. to:(SCCaptureStateMachineStateId)toId
  16. context:(NSString *)context;
  17. - (void)state:(SCCaptureStateMachineStateId)captureState
  18. illegalAPIcalled:(NSString *)illegalAPIName
  19. callStack:(NSArray<NSString *> *)callStack
  20. context:(NSString *)context;
  21. - (void)logAPICalled:(NSString *)apiName context:(NSString *)context;
  22. @end