Package org.gnome.gio

Interface Mount

All Superinterfaces:
Proxy
All Known Implementing Classes:
Mount.MountImpl

@Generated("io.github.jwharm.JavaGI") public interface Mount extends Proxy
The GMount interface represents a user-visible mount, such as a mounted file system.

GMount is a ‘mounted’ filesystem that you can access. Mounted is in quotes because it’s not the same as a UNIX mount, it might be a GVFS mount, but you can still access the files on it if you use GIO.

A GMount might be associated with a Volume (such as a USB flash drive) which hosts it.

Unmounting a GMount instance is an asynchronous operation. For more information about asynchronous operations, see AsyncResult and Task. To unmount a GMount instance, first call unmountWithOperation(java.util.Set<org.gnome.gio.MountUnmountFlags>, org.gnome.gio.MountOperation, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback) with (at least) the GMount instance and a Gio.AsyncReadyCallback. The callback will be fired when the operation has resolved (either with success or failure), and a AsyncResult structure will be passed to the callback. That callback should then call unmountWithOperationFinish(org.gnome.gio.AsyncResult) with the GMount and the AsyncResult data to see if the operation was completed successfully. If an error is present when unmountWithOperationFinish(org.gnome.gio.AsyncResult) is called, then it will be filled with any error information.

Note, when porting from GnomeVFS, GMount is the moral equivalent of GnomeVFSVolume.