|
Agora RTC Objective-C API Reference
Refactor
|
Inherits <NSObject>.
Instance Methods | |
| (int) | - removeAllCaches |
| (int) | - removeOldCache |
| (int) | - removeCacheByUri: |
| (int) | - setCacheDir: |
| (int) | - setMaxCacheFileCount: |
| (int) | - setMaxCacheFileSize: |
| (int) | - enableAutoRemoveCache: |
| (NSString *) | - cacheDir |
| (NSInteger) | - maxCacheFileCount |
| (NSInteger) | - maxCacheFileSize |
| (NSInteger) | - cacheFileCount |
Class Methods | |
| (instancetype) | + sharedInstance |
| + (instancetype) sharedInstance |
Get shared cacheManager instance.
| - (int) removeAllCaches |
Remove all media resource cache files.
| - (int) removeOldCache |
Remove the latest media resource cache file.
| - (int) removeCacheByUri: | (NSString *) | uri |
Remove the cache file by uri, setting by MediaSource.
| uri | URI,identify the uniqueness of the property, Set from MeidaSource |
| - (int) setCacheDir: | (NSString *) | cacheDir |
Set cache file path that files will be saved to.
| cacheDir | cacheDir path. |
| - (int) setMaxCacheFileCount: | (NSInteger) | count |
Set the maximum number of cached files.
| count | maximum number of cached files. |
| - (int) setMaxCacheFileSize: | (NSInteger) | cacheSize |
Set the total size of the largest cache file.
| cacheSize | total size of the largest cache file. |
| - (int) enableAutoRemoveCache: | (BOOL) | enable |
Set whether the player will clean up the cache in the order of resource usage.
| enable | enable the player to automatically clear the cache. |
| - (NSString *) cacheDir |
Get the cache directory you have set.
| - (NSInteger) maxCacheFileCount |
Get the maximum number of cached files.
0: file count.
| - (NSInteger) maxCacheFileSize |
Get the total size of the largest cache file
0: file size.
| - (NSInteger) cacheFileCount |
Get the number of all cache files.
0: file count.