Class FileMonitor
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class FileMonitor : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
FileMonitor
- Implements
- Inherited Members
Constructors
FileMonitor(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public FileMonitor(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
FileMonitor(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected FileMonitor(CreationData data)
Parameters
dataCreationData
FileMonitor(FileMonitorHandle)
protected FileMonitor(FileMonitorHandle handle)
Parameters
handleFileMonitorHandle
Fields
CancelledPropertyDefinition
public static readonly Property<bool, FileMonitor> CancelledPropertyDefinition
Field Value
ChangedSignal
Signal Descriptor for OnChanged.
public static readonly Signal<FileMonitor, FileMonitor.ChangedSignalArgs> ChangedSignal
Field Value
RateLimitPropertyDefinition
public static readonly Property<int, FileMonitor> RateLimitPropertyDefinition
Field Value
Properties
Cancelled
public bool Cancelled { get; }
Property Value
RateLimit
public int RateLimit { get; set; }
Property Value
Methods
Cancel()
public bool Cancel()
Returns
EmitEvent(File, File?, FileMonitorEvent)
public void EmitEvent(File child, File? otherFile, FileMonitorEvent eventType)
Parameters
childFileotherFileFileeventTypeFileMonitorEvent
GetGType()
public static Type GetGType()
Returns
IsCancelled()
public bool IsCancelled()
Returns
NewFromPointer(nint, bool)
Creates a new managed FileMonitor instance for a given pointer.
public static FileMonitor NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new FileMonitor and sets the properties specified by the construct arguments.
public static FileMonitor NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetRateLimit(int)
public void SetRateLimit(int limitMsecs)
Parameters
limitMsecsint
Events
OnChanged
public event SignalHandler<FileMonitor, FileMonitor.ChangedSignalArgs> OnChanged