VolumeWatcher Class Reference
Inherits from | NSObject |
Conforms to | VolumeManagerDelegate |
Declared in | main.m |
Tasks
Notification of pending mount, unmount, and eject
-
– volumeWillMountAt:withProperties:
-
– volumeWillUnmountFrom:withProperties:
-
– volumeWillEjectWithProperties:
-
– volumeDidMountAt:withProperties:
-
– volumeDidEjectWithProperties:
Notification of mount, unmount, and eject events
Instance Methods
volumeDidEjectWithProperties:
Notification that a volume/disk has ejected
- (void)volumeDidEjectWithProperties:(NSDictionary *)properties
Parameters
- properties
Properties of the ejected volume, including the VM-prefixed keys
Discussion
Notification that a volume/disk has ejected
Informs the delegate of a successful eject event.
Declared In
VolumeManager.h
volumeDidFailToEjectWithProperties:error:
Notification that a volume has failed to eject
- (void)volumeDidFailToEjectWithProperties:(NSDictionary *)properties error:(NSError *)error
Parameters
- properties
Properties of the volume, including the VM-prefixed keys
Discussion
Notification that a volume has failed to eject
Informs the delegate that the eject request has failed. This will always be in response to a delegate’s request to unmount or eject a volume.
Declared In
VolumeManager.h
volumeDidFailToUnmountFrom:withProperties:error:
Notification that a volume has failed to unmount
- (void)volumeDidFailToUnmountFrom:(NSURL *)URL withProperties:(NSDictionary *)properties error:(NSError *)error
Parameters
- properties
Properties of the volume, including the VM-prefixed keys
Discussion
Notification that a volume has failed to unmount
Informs the delegate that the unmount request has failed. This will always be in response to a delegate’s request to unmount or eject a volume.
Declared In
VolumeManager.h
volumeDidMountAt:withProperties:
Notification that a volume has mounted
- (void)volumeDidMountAt:(NSURL *)URL withProperties:(NSDictionary *)properties
Parameters
- URL
URL to which the volume has mounted
- properties
Properties of the mounted volume, including the VM-prefixed keys
Discussion
Notification that a volume has mounted
Informs the delegate of a successful mount event.
Declared In
VolumeManager.h
volumeDidUnmountWithProperties:
Notification that a volume has unmounted
- (void)volumeDidUnmountWithProperties:(NSDictionary *)properties
Parameters
- properties
Properties of the mounted volume, including the VM-prefixed keys
Discussion
Notification that a volume has unmounted
Informs the delegate of a successful unmount event.
Warning: This will only be called in response to unmount or eject requests
Declared In
VolumeManager.h
volumeWillEjectWithProperties:
Notification of a pending eject
- (void)volumeWillEjectWithProperties:(NSDictionary *)properties
Parameters
- properties
Properties of the ejecting volume, including the VM-prefixed keys
@warning: VMVolumeMountURL will not be available as the volume is not mounted.
Discussion
Notification of a pending eject
Informs the delegate of a pending eject event.
Declared In
VolumeManager.h
volumeWillMountAt:withProperties:
Notification of a pending mount
- (void)volumeWillMountAt:(NSURL *)URL withProperties:(NSDictionary *)properties
Parameters
- URL
URL to which the volume will mount
- properties
Properties of the mounting volume, including the VM-prefixed keys
Discussion
Notification of a pending mount
Informs the delegate of a pending mount event.
Declared In
VolumeManager.h
volumeWillUnmountFrom:withProperties:
Notification of a pending unmount
- (void)volumeWillUnmountFrom:(NSURL *)URL withProperties:(NSDictionary *)properties
Parameters
- URL
URL from which the volume will unmount
- properties
Properties of the unmounting volume, including the VM-prefixed keys
Discussion
Notification of a pending unmount
Informs the delegate of a pending unmount event.
Declared In
VolumeManager.h