1
0
This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
Source-SnapChatCamera/ManagedCapturer/SCCaptureStateMachineBookKeeper.h
2018-08-08 02:32:46 +03:00

30 lines
771 B
Objective-C

//
// SCCaptureStateTransitionBookKeeper.h
// Snapchat
//
// Created by Lin Jia on 10/27/17.
//
//
#import "SCCaptureStateUtil.h"
#import <Foundation/Foundation.h>
/*
Book keeper is used to record every state transition, and every illegal API call.
*/
@interface SCCaptureStateMachineBookKeeper : NSObject
- (void)stateTransitionFrom:(SCCaptureStateMachineStateId)fromId
to:(SCCaptureStateMachineStateId)toId
context:(NSString *)context;
- (void)state:(SCCaptureStateMachineStateId)captureState
illegalAPIcalled:(NSString *)illegalAPIName
callStack:(NSArray<NSString *> *)callStack
context:(NSString *)context;
- (void)logAPICalled:(NSString *)apiName context:(NSString *)context;
@end