enableAutoRemoveCache abstract method

Future<void> enableAutoRemoveCache(
  1. bool enable
)

Sets whether to delete cached media files automatically.

If you enable this function to remove cached media files automatically, when the cached media files exceed either the number or size limit you set, the SDK automatically deletes the least recently used cache file.

  • enable Whether to enable the SDK to delete cached media files automatically: true : Delete cached media files automatically. false : (Default) Do not delete cached media files automatically.

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> enableAutoRemoveCache(bool enable);