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 
17 
24 + (instancetype)sharedInstance NS_SWIFT_NAME(sharedInstance());
34 - (int)removeAllCaches NS_SWIFT_NAME(removeAllCaches());
49 - (int)removeOldCache NS_SWIFT_NAME(removeOldCache());
61 - (int)removeCacheByUri:(NSString *)uri NS_SWIFT_NAME(removeCache(byUri:));
74 - (int)setCacheDir:(NSString *)cacheDir NS_SWIFT_NAME(setCacheDir(_:));
84 - (int)setMaxCacheFileCount:(NSInteger)count NS_SWIFT_NAME(setMaxCacheFileCount(_:));
95 - (int)setMaxCacheFileSize:(NSInteger)cacheSize NS_SWIFT_NAME(setMaxCacheFileSize(_:));
112 - (int)enableAutoRemoveCache:(BOOL)enable NS_SWIFT_NAME(enableAutoRemoveCache(_:));
124 - (NSString *)cacheDir NS_SWIFT_NAME(cacheDir());
135 - (NSInteger)maxCacheFileCount NS_SWIFT_NAME(maxCacheFileCount());
148 - (NSInteger)maxCacheFileSize NS_SWIFT_NAME(maxCacheFileSize());
156 - (NSInteger)cacheFileCount NS_SWIFT_NAME(cacheFileCount());
157 
158 @end
159 
160 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
The media player cache manager protocol.
Definition: AgoraRtcMediaPlayerCacheManagerProtocol.h:16
-[AgoraRtcMediaPlayerCacheManagerProtocol-p maxCacheFileCount]
NSInteger maxCacheFileCount()
Gets the maximum number of media files that can be cached.