getCacheDir abstract method

Future<String> getCacheDir(
  1. int length
)

Gets the storage path of the cached files.

If you have not called the setCacheDir method to customize the cache file storage path before calling this method, the method returns the SDK's default cache file storage path.

  • length Input parameter. The maximum length of the cache file storage path string.

Returns On success, returns the storage path of the cached files. < 0: Failure. See MediaPlayerReason.

Implementation

Future<String> getCacheDir(int length);