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.

35 lines
1.1 KiB

  1. //
  2. // SCManagedVideoScanner.h
  3. // Snapchat
  4. //
  5. // Created by Liu Liu on 5/5/15.
  6. // Copyright (c) 2015 Snapchat, Inc. All rights reserved.
  7. //
  8. #import "SCManagedCapturer.h"
  9. #import "SCManagedDeviceCapacityAnalyzerListener.h"
  10. #import <SCCameraFoundation/SCManagedVideoDataSourceListener.h>
  11. #import <Foundation/Foundation.h>
  12. @class SCScanConfiguration;
  13. @interface SCManagedVideoScanner : NSObject <SCManagedVideoDataSourceListener, SCManagedDeviceCapacityAnalyzerListener>
  14. /**
  15. * Calling this method to start scan, scan will automatically stop when a snapcode detected
  16. */
  17. - (void)startScanAsynchronouslyWithScanConfiguration:(SCScanConfiguration *)configuration;
  18. /**
  19. * Calling this method to stop scan immediately (it is still possible that a successful scan can happen after this is
  20. * called)
  21. */
  22. - (void)stopScanAsynchronously;
  23. - (instancetype)initWithMaxFrameDefaultDuration:(NSTimeInterval)maxFrameDefaultDuration
  24. maxFramePassiveDuration:(NSTimeInterval)maxFramePassiveDuration
  25. restCycle:(float)restCycle;
  26. @end