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 
10 
15 + (instancetype)sharedInstance NS_SWIFT_NAME(sharedInstance());
22 - (int)removeAllCaches NS_SWIFT_NAME(removeAllCaches());
29 - (int)removeOldCache NS_SWIFT_NAME(removeOldCache());
37 - (int)removeCacheByUri:(NSString *)uri NS_SWIFT_NAME(removeCache(byUri:));
45 - (int)setCacheDir:(NSString *)cacheDir NS_SWIFT_NAME(setCacheDir(_:));
53 - (int)setMaxCacheFileCount:(NSInteger)count NS_SWIFT_NAME(setMaxCacheFileCount(_:));
61 - (int)setMaxCacheFileSize:(NSInteger)cacheSize NS_SWIFT_NAME(setMaxCacheFileSize(_:));
69 - (int)enableAutoRemoveCache:(BOOL)enable NS_SWIFT_NAME(enableAutoRemoveCache(_:));
74 - (NSString *)cacheDir NS_SWIFT_NAME(cacheDir());
81 - (NSInteger)maxCacheFileCount NS_SWIFT_NAME(maxCacheFileCount());
88 - (NSInteger)maxCacheFileSize NS_SWIFT_NAME(maxCacheFileSize());
95 - (NSInteger)cacheFileCount NS_SWIFT_NAME(cacheFileCount());
96 
97 @end
98 
99 NS_ASSUME_NONNULL_END
-[AgoraRtcMediaPlayerCacheManagerProtocol-p cacheFileCount]
NSInteger cacheFileCount()
-[AgoraRtcMediaPlayerCacheManagerProtocol-p removeOldCache]
int removeOldCache()
-[AgoraRtcMediaPlayerCacheManagerProtocol-p removeAllCaches]
int removeAllCaches()
+[AgoraRtcMediaPlayerCacheManagerProtocol-p sharedInstance]
instancetype sharedInstance()
-[AgoraRtcMediaPlayerCacheManagerProtocol-p maxCacheFileSize]
NSInteger maxCacheFileSize()
-[AgoraRtcMediaPlayerCacheManagerProtocol-p cacheDir]
NSString * cacheDir()
AgoraRtcMediaPlayerCacheManagerProtocol-p
Definition: AgoraRtcMediaPlayerCacheManagerProtocol.h:9
-[AgoraRtcMediaPlayerCacheManagerProtocol-p maxCacheFileCount]
NSInteger maxCacheFileCount()