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.
38 lines
1.0 KiB
38 lines
1.0 KiB
//
|
|
// SCCaptureStateUtil.m
|
|
// Snapchat
|
|
//
|
|
// Created by Lin Jia on 10/27/17.
|
|
//
|
|
//
|
|
|
|
#import "SCCaptureStateUtil.h"
|
|
|
|
#import <SCFoundation/SCAppEnvironment.h>
|
|
#import <SCFoundation/SCAssertWrapper.h>
|
|
|
|
NSString *SCCaptureStateName(SCCaptureStateMachineStateId stateId)
|
|
{
|
|
switch (stateId) {
|
|
case SCCaptureBaseStateId:
|
|
return @"SCCaptureBaseStateId";
|
|
case SCCaptureUninitializedStateId:
|
|
return @"SCCaptureUninitializedStateId";
|
|
case SCCaptureInitializedStateId:
|
|
return @"SCCaptureInitializedStateId";
|
|
case SCCaptureImageStateId:
|
|
return @"SCCaptureImageStateId";
|
|
case SCCaptureImageWhileRecordingStateId:
|
|
return @"SCCaptureImageWhileRecordingStateId";
|
|
case SCCaptureRunningStateId:
|
|
return @"SCCaptureRunningStateId";
|
|
case SCCaptureRecordingStateId:
|
|
return @"SCCaptureRecordingStateId";
|
|
case SCCaptureScanningStateId:
|
|
return @"SCCaptureScanningStateId";
|
|
default:
|
|
SCCAssert(NO, @"illegate state id");
|
|
break;
|
|
}
|
|
return @"SCIllegalStateId";
|
|
}
|