VolumeManagerDelegate Protocol Reference
Conforms to | NSObject |
Declared in | VolumeManager.h |
Tasks
Arbiting mount, unmount, and eject requests
-
– volumeShouldMountAt:withProperties:
-
– volumeShouldUnmountFrom:withProperties:
-
– volumeShouldEjectWithProperties:
Notification of pending mount, unmount, and eject
-
– volumeWillMountAt:withProperties:
-
– volumeWillUnmountFrom:withProperties:
-
– volumeWillEjectWithProperties:
Notification of mount, unmount, and eject events
-
– volumeDidMountAt:withProperties:
-
– volumeDidUnmountWithProperties:
-
– volumeDidEjectWithProperties:
Notification of failed 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
volumeShouldEjectWithProperties:
Arbitration method for pending volume ejects
- (BOOL)volumeShouldEjectWithProperties:(NSDictionary *)properties
Parameters
- properties
Properties of the volume wishing to eject, including the VM-prefixed keys
@warning: VMVolumeMountURL will not be available as the volume is not mounted.
Discussion
Arbitration method for pending volume ejects
Allows the delegate to allow or disallow ejection of a specific volume.
Declared In
VolumeManager.h
volumeShouldMountAt:withProperties:
Arbitration method for pending volume mounts
- (BOOL)volumeShouldMountAt:(NSURL *)URL withProperties:(NSDictionary *)properties
Parameters
- URL
URL to which the volume would mount, if allowed
- properties
Properties of the volume wishing to mount, including the VM-prefixed keys
Discussion
Arbitration method for pending volume mounts
Allows the delegate to allow or disallow mounting of a specific volume.
Declared In
VolumeManager.h
volumeShouldUnmountFrom:withProperties:
Arbitration method for pending volume unmounts
- (BOOL)volumeShouldUnmountFrom:(NSURL *)URL withProperties:(NSDictionary *)properties
Parameters
- URL
URL from which the volume would unmount, if allowed
- properties
Properties of the volume wishing to unmount, including the VM-prefixed keys
Discussion
Arbitration method for pending volume unmounts
Allows the delegate to allow or disallow unmounting of a specific volume.
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