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

33 lines
741 B
Objective-C

//
// SCTimedTask.m
// Snapchat
//
// Created by Michel Loenngren on 4/2/17.
// Copyright © 2017 Snapchat, Inc. All rights reserved.
//
#import "SCTimedTask.h"
#import <SCFoundation/NSString+SCFormat.h>
@implementation SCTimedTask
- (instancetype)initWithTargetTime:(CMTime)targetTime
task:
(void (^)(CMTime relativePresentationTime, CGFloat sessionStartTimeDelayInSecond))task
{
if (self = [super init]) {
_targetTime = targetTime;
_task = task;
}
return self;
}
- (NSString *)description
{
return [NSString
sc_stringWithFormat:@"<%@: %p, targetTime: %lld>", NSStringFromClass([self class]), self, _targetTime.value];
}
@end