moveData abstract method

void moveData(
  1. OfflineCacheDataMoveListener dataMoveListener, {
  2. required String newPath,
})

Moves offline caches to the specified folder. This operation is non-cancellable. If there is already a pending operation to set the cache path, it throws an error (Android). If the application exits before the operation is completed, it does not take effect, but garbage will not be cleared.

The class does not retain the object in the 'dataMoveListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.

newPath New path to store data. dataMoveListener It will be unsubscribed automatically when the operation is completed or fails with an error.

Implementation

void moveData(
  mapkit_offline_cache_data_move_listener.OfflineCacheDataMoveListener
      dataMoveListener, {
  required core.String newPath,
});