Agora RTC Objective-C API Reference Refactor

AgoraRtcMediaPlayerCacheManagerProtocol.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Agora. All rights reserved.
3 //
4
5 #import <Foundation/Foundation.h>
6
7 NS_ASSUME_NONNULL_BEGIN
8
9 @protocol AgoraRtcMediaPlayerCacheManagerProtocol <NSObject>
10
17 + (instancetype)sharedInstance NS_SWIFT_NAME(sharedInstance());
27 - (int)removeAllCaches NS_SWIFT_NAME(removeAllCaches());
42 - (int)removeOldCache NS_SWIFT_NAME(removeOldCache());
54 - (int)removeCacheByUri:(NSString *)uri NS_SWIFT_NAME(removeCache(byUri:));
67 - (int)setCacheDir:(NSString *)cacheDir NS_SWIFT_NAME(setCacheDir(_:));
77 - (int)setMaxCacheFileCount:(NSInteger)count NS_SWIFT_NAME(setMaxCacheFileCount(_:));
88 - (int)setMaxCacheFileSize:(NSInteger)cacheSize NS_SWIFT_NAME(setMaxCacheFileSize(_:));
105 - (int)enableAutoRemoveCache:(BOOL)enable NS_SWIFT_NAME(enableAutoRemoveCache(_:));
117 - (NSString *)cacheDir NS_SWIFT_NAME(cacheDir());
128 - (NSInteger)maxCacheFileCount NS_SWIFT_NAME(maxCacheFileCount());
141 - (NSInteger)maxCacheFileSize NS_SWIFT_NAME(maxCacheFileSize());
149 - (NSInteger)cacheFileCount NS_SWIFT_NAME(cacheFileCount());
150
151 @end
152
153 NS_ASSUME_NONNULL_END
-[AgoraRtcMediaPlayerCacheManagerProtocol-p cacheFileCount]
NSInteger cacheFileCount()
Gets the number of media files that are cached.
-[AgoraRtcMediaPlayerCacheManagerProtocol-p removeOldCache]
int removeOldCache()
Deletes a cached media file that is the least recently used.
-[AgoraRtcMediaPlayerCacheManagerProtocol-p removeAllCaches]
int removeAllCaches()
Deletes all cached media files in the media player.
+[AgoraRtcMediaPlayerCacheManagerProtocol-p sharedInstance]
instancetype sharedInstance()
Gets a AgoraRtcMediaPlayerCacheManagerProtocol instance.
-[AgoraRtcMediaPlayerCacheManagerProtocol-p maxCacheFileSize]
NSInteger maxCacheFileSize()
Gets the maximum size of the aggregate storage space for cached media files.
-[AgoraRtcMediaPlayerCacheManagerProtocol-p cacheDir]
NSString * cacheDir()
Gets the storage path of the cached media files.
AgoraRtcMediaPlayerCacheManagerProtocol-p
Definition: AgoraRtcMediaPlayerCacheManagerProtocol.h:9
-[AgoraRtcMediaPlayerCacheManagerProtocol-p maxCacheFileCount]
NSInteger maxCacheFileCount()
Gets the maximum number of media files that can be cached.