setCacheDir abstract method
Sets the storage path for the media files that you want to cache.
Make sure RtcEngine is initialized before you call this method.
path
The absolute path of the media files to be cached. Ensure that the directory for the media files exists and is writable.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. < 0: Failure. See MediaPlayerReason.
Implementation
Future<void> setCacheDir(String path);