Skip to main content

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​

AddressPort​

  • string AddressPort { get; }
    Device connection address and port.

    Returns:
    A string in IP:Port format used for ADB connections (e.g. 127.0.0.1:21503 for MEmu). For physical phones, matches the value of the Name property.


Index​

  • int Index { get; }
    Device index.

    Returns:
    Unique numeric identifier of the device. Mirrors the Index field in the Device Manager window.


IsRunning​

  • bool IsRunning { get; }
    Whether the device is ready for work.

    Returns:
    true if 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; otherwise false.

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;
bool isRunning = info.IsRunning;

Name​

  • string Name { get; }
    Internal ADB device name.

    Returns:
    System name used by the API. Mirrors the Device 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.


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.