Skip to main content

Info API

Description

IDroidInfoAPI Info

Gives you access to info about the current device. This interface is used to get various details about the connected device, but only after you've selected and connected to it using the IDroidActionAPI Action methods.

Properties

  • Device index
int Index { get; }

Duplicates the Index info from the Device Manager window.


  • Device title
string Title { get; }

Duplicates the Title info from the Device Manager window.


  • Device name (ADB)
string Name { get; }

This is the ADB device name, the same as the Device info in the Device Manager window.


  • Port shown in the instance window
int UiPort { get; }

This is only relevant when running a template in ZennoDroid.


  • Address for connecting via ADB
string AddressPort { get; }

For physical phones, matches the Name property value. For emulators, provides the connection address and port e.g. "127.0.0.1:21503" for MEmu


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;