Table of Contents

Class FileChooserRequest

Namespace
WebKit
Assembly
WebKit-6.0.dll
public sealed class FileChooserRequest : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
FileChooserRequest
Implements
Inherited Members

Constructors

FileChooserRequest(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 FileChooserRequest(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

FileChooserRequest(CreationData)

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

Parameters

data CreationData

FileChooserRequest(FileChooserRequestHandle)

protected FileChooserRequest(FileChooserRequestHandle handle)

Parameters

handle FileChooserRequestHandle

Fields

FilterPropertyDefinition

public static readonly Property<FileFilter?, FileChooserRequest> FilterPropertyDefinition

Field Value

Property<FileFilter, FileChooserRequest>

MimeTypesPropertyDefinition

public static readonly Property<string[], FileChooserRequest> MimeTypesPropertyDefinition

Field Value

Property<string[], FileChooserRequest>

SelectMultiplePropertyDefinition

public static readonly Property<bool, FileChooserRequest> SelectMultiplePropertyDefinition

Field Value

Property<bool, FileChooserRequest>

SelectedFilesPropertyDefinition

public static readonly Property<string[], FileChooserRequest> SelectedFilesPropertyDefinition

Field Value

Property<string[], FileChooserRequest>

Properties

Filter

public FileFilter? Filter { get; }

Property Value

FileFilter

MimeTypes

public string[] MimeTypes { get; }

Property Value

string[]

SelectMultiple

public bool SelectMultiple { get; }

Property Value

bool

SelectedFiles

public string[] SelectedFiles { get; }

Property Value

string[]

Methods

Cancel()

public void Cancel()

GetGType()

public static Type GetGType()

Returns

Type

GetMimeTypes()

public string[] GetMimeTypes()

Returns

string[]

GetMimeTypesFilter()

public FileFilter GetMimeTypesFilter()

Returns

FileFilter

GetSelectMultiple()

public bool GetSelectMultiple()

Returns

bool

GetSelectedFiles()

public string[] GetSelectedFiles()

Returns

string[]

NewFromPointer(nint, bool)

Creates a new managed FileChooserRequest instance for a given pointer.

public static FileChooserRequest NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

FileChooserRequest

NewWithProperties(ConstructArgument[])

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

public static FileChooserRequest NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

FileChooserRequest

SelectFiles(string[])

public void SelectFiles(string[] files)

Parameters

files string[]