Table of Contents

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

constructArguments ConstructArgument[]

FileMonitor(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected FileMonitor(CreationData data)

Parameters

data CreationData

FileMonitor(FileMonitorHandle)

protected FileMonitor(FileMonitorHandle handle)

Parameters

handle FileMonitorHandle

Fields

CancelledPropertyDefinition

public static readonly Property<bool, FileMonitor> CancelledPropertyDefinition

Field Value

Property<bool, FileMonitor>

ChangedSignal

Signal Descriptor for OnChanged.

public static readonly Signal<FileMonitor, FileMonitor.ChangedSignalArgs> ChangedSignal

Field Value

Signal<FileMonitor, FileMonitor.ChangedSignalArgs>

RateLimitPropertyDefinition

public static readonly Property<int, FileMonitor> RateLimitPropertyDefinition

Field Value

Property<int, FileMonitor>

Properties

Cancelled

public bool Cancelled { get; }

Property Value

bool

RateLimit

public int RateLimit { get; set; }

Property Value

int

Methods

Cancel()

public bool Cancel()

Returns

bool

EmitEvent(File, File?, FileMonitorEvent)

public void EmitEvent(File child, File? otherFile, FileMonitorEvent eventType)

Parameters

child File
otherFile File
eventType FileMonitorEvent

GetGType()

public static Type GetGType()

Returns

Type

IsCancelled()

public bool IsCancelled()

Returns

bool

NewFromPointer(nint, bool)

Creates a new managed FileMonitor instance for a given pointer.

public static FileMonitor NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

FileMonitor

NewWithProperties(ConstructArgument[])

Creates a new FileMonitor and sets the properties specified by the construct arguments.

public static FileMonitor NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

FileMonitor

SetRateLimit(int)

public void SetRateLimit(int limitMsecs)

Parameters

limitMsecs int

Events

OnChanged

public event SignalHandler<FileMonitor, FileMonitor.ChangedSignalArgs> OnChanged

Event Type

SignalHandler<FileMonitor, FileMonitor.ChangedSignalArgs>