Interface StorageMountListener

All Superinterfaces:
StorageListener

public interface StorageMountListener extends StorageListener
Listener for when a StorageDevice is mounted or unmounted.
Version:
2025-01-05
  • Method Details

    • onStorageMount

      void onStorageMount(StorageService service, StorageDevice device, StorageInfo info)
      Called when a storage device is mounted.
      Parameters:
      service - the storage service
      device - the device that was mounted
      info - information about disk usage of the newly mounted disk
    • onStorageUnmount

      void onStorageUnmount(StorageService service, StorageDevice device)
      Called when a storage device is unmounted.
      Parameters:
      service - the storage service
      device - the device that was unmounted