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.

28 lines
739 B

  1. //
  2. // SCTimedTask.h
  3. // Snapchat
  4. //
  5. // Created by Michel Loenngren on 4/2/17.
  6. // Copyright © 2017 Snapchat, Inc. All rights reserved.
  7. //
  8. #import <AVFoundation/AVFoundation.h>
  9. #import <Foundation/Foundation.h>
  10. /*
  11. Block based timed task
  12. */
  13. @interface SCTimedTask : NSObject
  14. @property (nonatomic, assign) CMTime targetTime;
  15. @property (nonatomic, copy) void (^task)(CMTime relativePresentationTime, CGFloat sessionStartTimeDelayInSecond);
  16. - (instancetype)init NS_UNAVAILABLE;
  17. - (instancetype)initWithTargetTime:(CMTime)targetTime
  18. task:(void (^)(CMTime relativePresentationTime,
  19. CGFloat sessionStartTimeDelayInSecond))task;
  20. - (NSString *)description;
  21. @end