C# Class SharpAdbClient.DeviceCommands.DeviceExtensions

Provides extension methods for the DeviceData class, allowing you to run commands directory against a DeviceData object.
ファイルを表示 Open project: ArduPilot/MissionPlanner

Public Methods

Method Description
ExecuteShellCommand ( this device, string command, IShellOutputReceiver receiver ) : void

Executes a shell command on the device.

GetEnvironmentVariables ( this device ) : string>.Dictionary

Gets the environment variables currently defined on a device.

GetPackageVersion ( this device, string packageName ) : SharpAdbClient.DeviceCommands.VersionInfo

Requests the version information from the device.

GetProperties ( this device ) : string>.Dictionary

Gets the properties of a device.

ListProcesses ( this device ) : IEnumerable

Lists all processes running on the device.

Stat ( this device, string path ) : FileStatistics

Gets the file statistics of a given file.

UninstallPackage ( this device, string packageName ) : void

Uninstalls a package from the device.

Method Details

ExecuteShellCommand() public static method

Executes a shell command on the device.
public static ExecuteShellCommand ( this device, string command, IShellOutputReceiver receiver ) : void
device this /// The device on which to run the command. ///
command string /// The command to execute. ///
receiver IShellOutputReceiver /// Optionally, a that processes the command output. ///
return void

GetEnvironmentVariables() public static method

Gets the environment variables currently defined on a device.
public static GetEnvironmentVariables ( this device ) : string>.Dictionary
device this /// The device for which to list the environment variables. ///
return string>.Dictionary

GetPackageVersion() public static method

Requests the version information from the device.
public static GetPackageVersion ( this device, string packageName ) : SharpAdbClient.DeviceCommands.VersionInfo
device this /// The device on which to uninstall the package. ///
packageName string /// The name of the package from which to get the application version. ///
return SharpAdbClient.DeviceCommands.VersionInfo

GetProperties() public static method

Gets the properties of a device.
public static GetProperties ( this device ) : string>.Dictionary
device this /// The device for which to list the properties. ///
return string>.Dictionary

ListProcesses() public static method

Lists all processes running on the device.
public static ListProcesses ( this device ) : IEnumerable
device this /// The device on which to list the processes that are running. ///
return IEnumerable

Stat() public static method

Gets the file statistics of a given file.
public static Stat ( this device, string path ) : FileStatistics
device this /// The device on which to look for the file. ///
path string /// The path to the file. ///
return FileStatistics

UninstallPackage() public static method

Uninstalls a package from the device.
public static UninstallPackage ( this device, string packageName ) : void
device this /// The device on which to uninstall the package. ///
packageName string /// The name of the package to uninstall. ///
return void