csharp
public sealed class HeadlessDialogsNo dialogs, because there is no user to show one to.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Returns "nothing chosen" rather than throwing, which is the same answer a user pressing Cancel gives — so the caller's existing cancellation path covers this and no headless special case is needed anywhere.
Methods (5)
public ValueTask<string?> OpenFileAsync(FileDialogOptions options, IWindow? owner = null, CancellationToken cancellationToken = default(CancellationToken))Asks the user to pick one existing file.
public ValueTask<IReadOnlyList<string>> OpenFilesAsync(FileDialogOptions options, IWindow? owner = null, CancellationToken cancellationToken = default(CancellationToken))Asks the user to pick one or more existing files.
public ValueTask<string?> SaveFileAsync(FileDialogOptions options, IWindow? owner = null, CancellationToken cancellationToken = default(CancellationToken))Asks the user where to save.
public ValueTask<string?> OpenFolderAsync(FileDialogOptions options, IWindow? owner = null, CancellationToken cancellationToken = default(CancellationToken))Asks the user to pick a folder.
public ValueTask<MessageBoxResult> ShowMessageAsync(MessageBoxOptions options, IWindow? owner = null, CancellationToken cancellationToken = default(CancellationToken))Shows a message box and waits for an answer.
Used by (1)
- HeadlessPlatformVixen.Platform.Headless