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.

30 lines
791 B

  1. //
  2. // SCCaptureStateDelegate.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. @class SCCaptureBaseState;
  11. @class SCStateTransitionPayload;
  12. /*
  13. The state machine state delegate is used by state machine states to hint to the system that "I am done, now transfer
  14. to other state".
  15. Currently, SCCaptureStateMachineContext is the central piece that glues all states together, and it is the delegate for
  16. those states.
  17. */
  18. @protocol SCCaptureStateDelegate <NSObject>
  19. - (void)currentState:(SCCaptureBaseState *)state
  20. requestToTransferToNewState:(SCCaptureStateMachineStateId)newState
  21. payload:(SCStateTransitionPayload *)payload
  22. context:(NSString *)context;
  23. @end