NativePickerBackend class

Namespace Runic.Platform.Runtime · Runic.Platform.Runtime 0.7.0-preview.5

public sealed class NativePickerBackend : IPickerBackend, IFileDialogs

Inherits or implements IPickerBackend, IFileDialogs.

Converts acquired native selections to safe, single-use file leases.

Constructors

NativePickerBackend

public NativePickerBackend(INativePickerOwner owner, INativeFilePicker picker)

Converts acquired native selections to safe, single-use file leases.

Properties

IsAvailable

public bool IsAvailable { get; }

Whether the provider can currently show dialogs.

Documentation from IPickerBackend.IsAvailable.

SupportsAtomicReplace

public bool SupportsAtomicReplace { get; }

Whether selected save destinations can be staged and atomically replaced.

Documentation from IPickerBackend.SupportsAtomicReplace.

Methods

OpenFileAsync

public ValueTask<PickerResult<IReadFileLease>> OpenFileAsync(OpenFileOptions options, CancellationToken cancellationToken = default)

Selects and acquires a single-use read lease.

Documentation from IFileDialogs.OpenFileAsync.

SaveFileAsync

public ValueTask<PickerResult<ISaveFileLease>> SaveFileAsync(SaveFileOptions options, CancellationToken cancellationToken = default)

Selects and acquires a save destination.

Documentation from IFileDialogs.SaveFileAsync.