Info API
Description
IDroidInfoAPI provides basic information about the device or emulator in ZennoDroid. Used to retrieve identifiers, network parameters, and data needed for connecting to and managing the device.
Properties
Index
-
int Index { get; }
Device index.Returns:
Unique numeric identifier of the device. Mirrors the Index field in the Device Manager window.
Title
-
string Title { get; }
Device display name.Returns:
Human-readable device name. Mirrors the Title field in the Device Manager window.
Name
-
string Name { get; }
Internal ADB device name.Returns:
System name used by the API. Mirrors the Device field in the Device Manager window.
UiPort
-
int UiPort { get; }
UI port of the device.Returns:
Port used for UI interaction with the device. Only relevant when running a template in ZennoDroid.
AddressPort
-
string AddressPort { get; }
Device connection address and port.Returns:
A string inIP:Portformat used for ADB connections (e.g.127.0.0.1:21503for MEmu). For physical phones, matches the value of theNameproperty.
Example
var info = instance.DroidInstance.Info;
int index = info.Index;
string title = info.Title;
string Name = info.Name;
int uiPort = info.UiPort;
string addressPort = info.AddressPort;