Contents

unmountAndEjectDevice(at:)

Attempts to eject the volume mounted at the given path.

Declaration

func unmountAndEjectDevice(at url: URL) throws

Parameters

  • url:

    The URL of the volume to eject.

Discussion

You can safely call this method from any thread of your app.

See Also

Unmounting a Device