FileMonitorImpl

class FileMonitorImpl(pointer: <Error class: unknown class><<Error class: unknown class>>) : FileMonitor

The FileMonitorImpl type represents a native instance of the abstract FileMonitor class.

Constructors

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

Creates a new instance of FileMonitor for the provided CPointer.

Properties

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

Functions

Link copied to clipboard
open fun cancel(): Boolean

Cancels a file monitor.

Link copied to clipboard
fun emitChanged(file: File, otherFile: File?, eventType: FileMonitorEvent)

Emits the "changed" signal. See onChanged.

Link copied to clipboard
open fun emitEvent(child: File, otherFile: File, eventType: FileMonitorEvent)

Emits the #GFileMonitor::changed signal if a change has taken place. Should be called from file monitor implementations only.

Link copied to clipboard
open fun isCancelled(): Boolean

Returns whether the monitor is canceled.

Link copied to clipboard
fun onChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (file: File, otherFile: File?, eventType: FileMonitorEvent) -> Unit): <Error class: unknown class>

Emitted when @file has been changed.

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

Sets the rate limit to which the @monitor will report consecutive change events to the same file.