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.
2018-08-08 02:32:46 +03:00

29 lines
739 B
Objective-C

//
// SCTimedTask.h
// Snapchat
//
// Created by Michel Loenngren on 4/2/17.
// Copyright © 2017 Snapchat, Inc. All rights reserved.
//
#import <AVFoundation/AVFoundation.h>
#import <Foundation/Foundation.h>
/*
Block based timed task
*/
@interface SCTimedTask : NSObject
@property (nonatomic, assign) CMTime targetTime;
@property (nonatomic, copy) void (^task)(CMTime relativePresentationTime, CGFloat sessionStartTimeDelayInSecond);
- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithTargetTime:(CMTime)targetTime
task:(void (^)(CMTime relativePresentationTime,
CGFloat sessionStartTimeDelayInSecond))task;
- (NSString *)description;
@end