Interface StorageMountListener
- All Superinterfaces:
StorageListener
Listener for when a
StorageDevice is mounted or unmounted.- Version:
- 2025-01-05
-
Method Summary
Modifier and TypeMethodDescriptionvoidonStorageMount(StorageService service, StorageDevice device, StorageInfo info) Called when a storage device is mounted.voidonStorageUnmount(StorageService service, StorageDevice device) Called when a storage device is unmounted.
-
Method Details
-
onStorageMount
Called when a storage device is mounted.- Parameters:
service- the storage servicedevice- the device that was mountedinfo- information about disk usage of the newly mounted disk
-
onStorageUnmount
Called when a storage device is unmounted.- Parameters:
service- the storage servicedevice- the device that was unmounted
-