Vixen
02b45cc4
csharp
public sealed class DeviceManager

Every device every provider can see, in one list.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ Rediscovery replaces rather than merges, and a device that has gone becomes Unreachable rather than disappearing. A phone whose cable is loose vanishing from the list looks like a panel that lost it; a phone marked unreachable is a phone somebody goes and plugs back in.

⚠ A provider that throws is reported and does not stop the others. Discovery runs external tools — adb, a vendor SDK — and one that is not installed must not be the reason the local machine stops being listed.

Fields and properties (4)

  • public IReadOnlyList<IDeviceProvider> Providers

    Where the devices come from.

  • public IReadOnlyList<DeviceEntry> Devices

    What is out there, in the order the providers reported it.

  • public IReadOnlyList<string> Problems

    What went wrong during the last discovery.

  • public DeviceEntry? Selected

    Which device is selected, or .

Events (1)

  • public Action<DeviceManager>? Changed

    Raised when the list changed.

Methods (3)

  • public void Add(IDeviceProvider provider)

    Adds a provider.

  • public bool Mark(string id, DeviceStatus status)

    Says what a device is doing now, without asking its provider again.

  • public void Discover()

    Asks every provider what it can see.

Used by (4)

  • BuildSettingsTestsVixen.Editor.App.Tests
  • DeviceManagerViewVixen.Editor.Debugger
  • DiagnosticsModuleVixen.Editor.Diagnostics
  • EditorApplicationVixen.Editor.App