public sealed class RunicServeOnlyFileDialogs Scripts the file dialogs of a serve-only application (RunicServeOnlyTestPlatform.FileDialogs), with the names of RunicTestFileDialogs.
Methods
EnqueueDismissed
public void EnqueueDismissed() Queues a dismissal of the next file dialog.
EnqueueFailed
public void EnqueueFailed(PlatformFailureCode code) Queues a failure for the next file dialog.
Parameters
codeThe failure it reports.
EnqueueOpen
public void EnqueueOpen(string name, ReadOnlySpan<byte> content) Queues the selection of an existing file for the next open-file or open-document dialog.
Parameters
nameThe file's display name.
contentIts bytes.
EnqueueOpen
public void EnqueueOpen(string name, string text) Queues the selection of a file with UTF-8 text for the next open dialog.
Parameters
nameThe file's display name.
textIts text.
EnqueueOpenDirectory
public void EnqueueOpenDirectory(params string[] paths) Queues the selection of directories for the next directory dialog.
Parameters
pathsFully qualified paths.
EnqueueSave
public void EnqueueSave(string name) Queues a new save destination for the next save dialog; its commits are recorded with their content.
Parameters
nameThe name the user chose.
EnqueueUnavailable
public void EnqueueUnavailable(PlatformUnavailableReason reason) Queues unavailability for the next file dialog.
Parameters
reasonThe reason it reports.