VolumeMonitor

open class VolumeMonitor(pointer: <Error class: unknown class><<Error class: unknown class>>)

#GVolumeMonitor is for listing the user interesting devices and volumes on the computer. In other words, what a file selector or file manager would show in a sidebar.

#GVolumeMonitor is not g-main-context-push-thread-default, and so should not be used other than from the main thread, with no thread-default-context active.

In order to receive updates about volumes and mounts monitored through GVFS, a main loop must be running.

Inheritors

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gioVolumeMonitorPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun connectDriveChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (drive: Drive) -> Unit): <Error class: unknown class>

Emitted when a drive changes.

Link copied to clipboard
fun connectDriveConnected(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (drive: Drive) -> Unit): <Error class: unknown class>

Emitted when a drive is connected to the system.

Link copied to clipboard
fun connectDriveDisconnected(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (drive: Drive) -> Unit): <Error class: unknown class>

Emitted when a drive is disconnected from the system.

Link copied to clipboard
fun connectDriveEjectButton(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (drive: Drive) -> Unit): <Error class: unknown class>

Emitted when the eject button is pressed on @drive.

Link copied to clipboard
fun connectDriveStopButton(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (drive: Drive) -> Unit): <Error class: unknown class>

Emitted when the stop button is pressed on @drive.

Link copied to clipboard
fun connectMountAdded(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (mount: Mount) -> Unit): <Error class: unknown class>

Emitted when a mount is added.

Link copied to clipboard
fun connectMountChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (mount: Mount) -> Unit): <Error class: unknown class>

Emitted when a mount changes.

Link copied to clipboard
fun connectMountPreUnmount(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (mount: Mount) -> Unit): <Error class: unknown class>

May be emitted when a mount is about to be removed.

Link copied to clipboard
fun connectMountRemoved(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (mount: Mount) -> Unit): <Error class: unknown class>

Emitted when a mount is removed.

Link copied to clipboard
fun connectVolumeAdded(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (volume: Volume) -> Unit): <Error class: unknown class>

Emitted when a mountable volume is added to the system.

Link copied to clipboard
fun connectVolumeChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (volume: Volume) -> Unit): <Error class: unknown class>

Emitted when mountable volume is changed.

Link copied to clipboard
fun connectVolumeRemoved(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (volume: Volume) -> Unit): <Error class: unknown class>

Emitted when a mountable volume is removed from the system.

Link copied to clipboard
open fun getConnectedDrives(): <Error class: unknown class>

Gets a list of drives connected to the system.

Link copied to clipboard
open fun getMountForUuid(uuid: String): Mount?

Finds a #GMount object by its UUID (see g_mount_get_uuid())

Link copied to clipboard
open fun getMounts(): <Error class: unknown class>

Gets a list of the mounts on the system.

Link copied to clipboard
open fun getVolumeForUuid(uuid: String): Volume?

Finds a #GVolume object by its UUID (see g_volume_get_uuid())

Link copied to clipboard
open fun getVolumes(): <Error class: unknown class>

Gets a list of the volumes on the system.