C# Класс SharpAdbClient.AdbServer

Provides methods for interacting with the adb server. The adb server must be running for the rest of the Managed.Adb library to work.

The adb server is a background process that runs on the host machine. Its purpose if to sense the USB ports to know when devices are attached/removed, as well as when emulator instances start/stop. The ADB server is really one giant multiplexing loop whose purpose is to orchestrate the exchange of data between clients and devices.

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
RequiredAdbVersion System.Version

Открытые методы

Метод Описание
AdbServer ( ) : Mono.Unix

Initializes a new instance of the AdbServer class.

AdbServer ( EndPoint endPoint ) : Mono.Unix

Initializes a new instance of the AdbServer class, and the specific EndPoint at which the server should be listening.

GetStatus ( ) : AdbServerStatus
RestartServer ( ) : void
StartServer ( string adbPath, bool restartServerIfNewer ) : StartServerResult

Описание методов

AdbServer() публичный Метод

Initializes a new instance of the AdbServer class.
public AdbServer ( ) : Mono.Unix
Результат Mono.Unix

AdbServer() публичный Метод

Initializes a new instance of the AdbServer class, and the specific EndPoint at which the server should be listening.
public AdbServer ( EndPoint endPoint ) : Mono.Unix
endPoint System.Net.EndPoint /// The at which the server should be listening. ///
Результат Mono.Unix

GetStatus() публичный Метод

public GetStatus ( ) : AdbServerStatus
Результат AdbServerStatus

RestartServer() публичный Метод

public RestartServer ( ) : void
Результат void

StartServer() публичный Метод

public StartServer ( string adbPath, bool restartServerIfNewer ) : StartServerResult
adbPath string
restartServerIfNewer bool
Результат StartServerResult

Описание свойств

RequiredAdbVersion публичное статическое свойство

The minum version of adb.exe that is supported by this library.
public static Version,System RequiredAdbVersion
Результат System.Version