setMaxCacheSize method

FutureOr<void> setMaxCacheSize(
  1. int maxCacheSizeMB
)

@detail api @author lihuan.wuti2ha @brief Sets the maximum cache for storing music files. @param maxCacheSizeMB The maximum cache to be set in MB.
If the setting value is less than or equal to 0, it will be adjusted to 1,024 MB.

Implementation

FutureOr<void> setMaxCacheSize(int maxCacheSizeMB) async {
  return await nativeCall('setMaxCacheSize:', [maxCacheSizeMB]);
}