123456789101112131415161718192021222324252627282930313233 |
- //
- // VLCMediaFileDiscoverer.h
- // VLC for iOS
- //
- // Created by Gleb on 7/27/13.
- // Copyright (c) 2013 VideoLAN. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- @protocol VLCMediaFileDiscovererDelegate <NSObject>
- @optional
- // loading is equal to YES first time when file is discovered
- - (void)mediaFileAdded:(NSString *)filePath loading:(BOOL)isLoading;
- - (void)mediaFileChanged:(NSString *)filePath size:(unsigned long long)size;
- - (void)mediaFileDeleted:(NSString *)filePath;
- @end
- @interface VLCMediaFileDiscoverer : NSObject
- - (void)addObserver:(id<VLCMediaFileDiscovererDelegate>)delegate;
- - (void)removeObserver:(id<VLCMediaFileDiscovererDelegate>)delegate;
- - (void)startDiscovering:(NSString *)directoryPath;
- - (void)stopDiscovering;
- + (instancetype)sharedInstance;
- @end
|