public sealed class DeviceManagerViewWhat a build can be deployed to, and which of them is answering.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ What this panel is honest about is how much of it is a provider away. The list, the statuses, the selection and the hand-off to the remote inspector are all here; what is not is anything that knows how to find an Android phone, which is adb, or a console, which is a vendor SDK. Doc 20 puts device discovery behind those tools rather than behind this window, and a panel listing the local machine and saying so is a truer state than one that pretends to scan.
⚠ Deploy is a request rather than a call, for exactly AttachRequested's reason. It needs a build — which is doc 20's E6 and lives behind build.settings — and what "deploy" means differs per kind of device: this machine is a publish and a launch, a phone is adb install, a console is a vendor SDK. A debugger assembly that picked one would be a panel that could only deploy to that one, so it raises the intent and the application answers it.
⚠ Which devices can be deployed to is asked rather than assumed — see CanDeploy. The button is greyed with the reason for the kinds nothing can reach yet, which is the same rule the greyed menu lines follow and is why a device this editor cannot install to is visibly that rather than a button that fails.
Fields and properties (9)
protected override string TagNameThe element name this type answers to when a caller does not choose one.
protected override bool AcceptsFocusWhether the focus can rest on this kind of control at all.
public UiElement ToolbarThe strip along the top.
public Button DiscoverAsks every provider what it can see.
public Button DeployButtonBuilds and installs onto the selected device.
public Button AttachButtonPoints the remote inspector at the selected device.
public UiElement StatusWhat went wrong, or what was found.
public DataGrid DevicesThe devices.
public Func<DeviceEntry, string?>? CanDeployWhy a device cannot be deployed to, or when it can.
Events (2)
public Action<DeviceManagerView, DeviceEntry>? AttachRequestedRaised when somebody asks to attach to a device that is listening.
public Action<DeviceManagerView, DeviceEntry>? DeployRequestedRaised when somebody asks for a build to be put on a device.
Methods (3)
public void Show(DeviceManager devices)Points the panel at a manager.
protected override void OnCreated()Builds whatever this element is made of, once, as it joins a document.
protected override void OnRemoved()Called once, as the element leaves the document.
Used by (3)
- BuildSettingsTestsVixen.Editor.App.Tests
- DiagnosticsModuleVixen.Editor.Diagnostics
- DiagnosticsPanelTestsVixen.Editor.App.Tests