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.

26 lines
640 B

  1. //
  2. // SCFeatureScanning.h
  3. // Snapchat
  4. //
  5. // Created by Xiaokang Liu on 2018/4/19.
  6. //
  7. #import "SCFeature.h"
  8. @protocol SCFeatureScanning;
  9. @protocol SCFeatureScanningDelegate <NSObject>
  10. - (void)featureScanning:(id<SCFeatureScanning>)featureScanning didFinishWithResult:(NSObject *)resultObject;
  11. @end
  12. /**
  13. This SCFeature allows the user to long press on the screen to scan a snapcode.
  14. */
  15. @protocol SCFeatureScanning <SCFeature>
  16. @property (nonatomic, weak) id<SCFeatureScanningDelegate> delegate;
  17. @property (nonatomic, assign) NSTimeInterval lastSuccessfulScanTime;
  18. - (void)startScanning;
  19. - (void)stopScanning;
  20. - (void)stopSearch;
  21. @end