DeviceSummaryInfo
Description
IDeviceSummaryInfo contains summary information about a device or emulator. Used to retrieve basic state and identification data about a device without requiring a full connection.
Properties
Index
-
int Index { get; }
Unique device index.Returns:
A numeric identifier used to address the device within the system.
IsBusy
-
bool IsBusy { get; }
Indicates whether the device is busy.Returns:
trueif the device is in use (e.g. a scenario is running); otherwisefalse.
IsRunning
-
bool IsRunning { get; }
Whether the device is ready for work.Returns:
trueif the device is ready for work: the screen is being captured, and for an emulator it is started and connected, for a physical phone it is connected; otherwisefalse.
Name
-
string Name { get; }
Internal device name.Returns:
The system name (e.g. an instance identifier).
Title
-
string Title { get; }
Display name of the device.Returns:
A human-readable name (e.g. one set by the user).
Example
var manager = new DroidManager();
foreach (var device in manager.GetListDevices())
{
project.SendInfoToLog(device.Index + " - " + device.Title + " (" + device.Name + ")");
project.SendInfoToLog("running: " + device.IsRunning + ", busy: " + device.IsBusy);
}