VLCMediaFileDiscoverer.h 800 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // VLCMediaFileDiscoverer.h
  3. // VLC for iOS
  4. //
  5. // Created by Gleb on 7/27/13.
  6. // Copyright (c) 2013 VideoLAN. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @protocol VLCMediaFileDiscovererDelegate <NSObject>
  10. @optional
  11. // loading is equal to YES first time when file is discovered
  12. - (void)mediaFileAdded:(NSString *)filePath loading:(BOOL)isLoading;
  13. - (void)mediaFileChanged:(NSString *)filePath size:(unsigned long long)size;
  14. - (void)mediaFileDeleted:(NSString *)filePath;
  15. @end
  16. @interface VLCMediaFileDiscoverer : NSObject
  17. - (void)addObserver:(id<VLCMediaFileDiscovererDelegate>)delegate;
  18. - (void)removeObserver:(id<VLCMediaFileDiscovererDelegate>)delegate;
  19. - (void)startDiscovering:(NSString *)directoryPath;
  20. - (void)stopDiscovering;
  21. + (instancetype)sharedInstance;
  22. @end