NativeVolumeMonitor
open class NativeVolumeMonitor(pointer: <Error class: unknown class><<Error class: unknown class>>) : VolumeMonitor
Constructors
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
Gets a list of drives connected to the system.
Link copied to clipboard
Finds a #GMount object by its UUID (see g_mount_get_uuid())
Link copied to clipboard
Finds a #GVolume object by its UUID (see g_volume_get_uuid())
Link copied to clipboard
Gets a list of the volumes on the system.