public static class PlatformCapabilityIds The capability identifiers of a window's platform services, the keys of CapabilitySnapshot.Statuses.
Example
if (services.GetSnapshot().Statuses[PlatformCapabilityIds.UrisLaunch] is CapabilityStatus.Available) { … }Fields
ClipboardReadData
public const string ClipboardReadData = "platform.clipboard.readData" Reading HTML, RTF, images and files through IDesktopClipboard.
ClipboardReadText
public const string ClipboardReadText = "platform.clipboard.readText" Reading text through ITextClipboard.ReadTextAsync.
ClipboardWatch
public const string ClipboardWatch = "platform.clipboard.watch" Watching the clipboard's formats through IDesktopClipboard.WatchAsync.
ClipboardWriteData
public const string ClipboardWriteData = "platform.clipboard.writeData" Writing through IDesktopClipboard.WriteAsync.
ClipboardWriteText
public const string ClipboardWriteText = "platform.clipboard.writeText" Writing text through ITextClipboard.WriteTextAsync.
ContextMenu
public const string ContextMenu = "platform.contextMenu" Showing native context menus through IWindowPlatformServices.ShowContextMenuAsync.
DialogsOwned
public const string DialogsOwned = "platform.dialogs.owned" File dialogs owned by the window: available while OwnerPolicy.RequireOwner shows a dialog.
DialogsUnowned
public const string DialogsUnowned = "platform.dialogs.unowned" File dialogs without an owner: available while the window has no native owner and OwnerPolicy.PreferOwner shows an unowned dialog, such as for an installed browser after an embedded-window fallback.
Remarks
While it is available, PlatformCapabilityIds.FilesOpen, PlatformCapabilityIds.FilesSave, PlatformCapabilityIds.DirectoriesOpen and the other file capabilities describe those unowned dialogs, and PlatformCapabilityIds.DialogsOwned reports PlatformUnavailableReason.OwnerUnavailable, as a OwnerPolicy.RequireOwner call does. Services with an owner, or without unowned dialogs, report it PlatformUnavailableReason.ProviderNotConfigured or the reason their dialogs are unavailable.
DirectoriesOpen
public const string DirectoriesOpen = "platform.directories.open" Selecting a directory through IFileDialogs.OpenDirectoryAsync.
DirectoriesOpenMultiple
public const string DirectoriesOpenMultiple = "platform.directories.openMultiple" Selecting several directories through IFileDialogs.OpenDirectoriesAsync.
DragOut
public const string DragOut = "platform.drag.out" Starting drags out of the window through IWindowPlatformServices.StartDragAsync.
FilesLaunch
public const string FilesLaunch = "platform.files.launch" Handing local files to applications through IDesktopFileLauncher.LaunchAsync.
FilesOpen
public const string FilesOpen = "platform.files.open" Opening a file through IFileDialogs.OpenFileAsync.
FilesOpenDocument
public const string FilesOpenDocument = "platform.files.openDocument" Selecting documents to read and save back to through IFileDialogs.OpenDocumentAsync and IFileDialogs.SaveDocumentAsync. Whether their writes can replace the file is PlatformCapabilityIds.FilesSave.
FilesOpenMultiple
public const string FilesOpenMultiple = "platform.files.openMultiple" Selecting several files through IFileDialogs.OpenFilesAsync.
FilesSave
public const string FilesSave = "platform.files.save" Saving a file through IFileDialogs.SaveFileAsync. Unavailable with PlatformUnavailableReason.AtomicReplaceUnavailable when saves cannot replace atomically.
MenuBar
public const string MenuBar = "platform.menuBar" The window shows its menu bar natively, in the window or in the desktop's global menu bar.
Remarks
Unavailable for a window without a native bar, including one that renders the bar in its page; the in-page menu bar reports its own placement.
MessageBoxes
public const string MessageBoxes = "platform.messageBoxes" Showing native message boxes through IWindowPlatformServices.MessageBoxes.
Monitors
public const string Monitors = "platform.monitors" Listing and watching the desktop's monitors through IWindowPlatformServices.Monitors.
TaskbarBadge
public const string TaskbarBadge = "platform.taskbar.badge" Showing a badge through IWindowPlatformServices.SetBadgeAsync.
TaskbarProgress
public const string TaskbarProgress = "platform.taskbar.progress" Showing progress through IWindowPlatformServices.SetProgressAsync.
UrisLaunch
public const string UrisLaunch = "platform.uris.launch" Opening URIs through IDesktopFileLauncher.LaunchUriAsync.