28 lines
789 B
Mathematica
28 lines
789 B
Mathematica
|
//
|
||
|
// SCCaptureImageStateTransitionPayload.m
|
||
|
// Snapchat
|
||
|
//
|
||
|
// Created by Lin Jia on 1/9/18.
|
||
|
//
|
||
|
|
||
|
#import "SCCaptureImageStateTransitionPayload.h"
|
||
|
|
||
|
@implementation SCCaptureImageStateTransitionPayload
|
||
|
|
||
|
- (instancetype)initWithFromState:(SCCaptureStateMachineStateId)fromState
|
||
|
toState:(SCCaptureStateMachineStateId)toState
|
||
|
captureSessionId:(NSString *)captureSessionID
|
||
|
aspectRatio:(CGFloat)aspectRatio
|
||
|
completionHandler:(sc_managed_capturer_capture_still_image_completion_handler_t)block
|
||
|
{
|
||
|
self = [super initWithFromState:fromState toState:toState];
|
||
|
if (self) {
|
||
|
_captureSessionID = captureSessionID;
|
||
|
_aspectRatio = aspectRatio;
|
||
|
_block = block;
|
||
|
}
|
||
|
return self;
|
||
|
}
|
||
|
|
||
|
@end
|