C# 클래스 SharpAdbClient.DeviceCommands.PackageManager

Allows you to get information about packages that are installed on a device.
파일 보기 프로젝트 열기: ArduPilot/MissionPlanner 1 사용 예제들

공개 메소드들

메소드 설명
GetVersionInfo ( string packageName ) : SharpAdbClient.DeviceCommands.VersionInfo

Requests the version information from the device.

InstallPackage ( string packageFilePath, bool reinstall ) : void

Installs an Android application on device.

InstallRemotePackage ( string remoteFilePath, bool reinstall ) : void

Installs the application package that was pushed to a temporary location on the device.

PackageManager ( DeviceData device, bool thirdPartyOnly = false ) : Exceptions

Initializes a new instance of the PackageManager class.

RefreshPackages ( ) : void

Refreshes the packages.

UninstallPackage ( string packageName ) : void

Uninstalls a package from the device.

비공개 메소드들

메소드 설명
RemoveRemotePackage ( string remoteFilePath ) : void

Remove a file from device

SyncPackageToDevice ( string localFilePath ) : string

Pushes a file to device

ValidateDevice ( ) : void

메소드 상세

GetVersionInfo() 공개 메소드

Requests the version information from the device.
public GetVersionInfo ( string packageName ) : SharpAdbClient.DeviceCommands.VersionInfo
packageName string /// The name of the package from which to get the application version. ///
리턴 SharpAdbClient.DeviceCommands.VersionInfo

InstallPackage() 공개 메소드

Installs an Android application on device.
public InstallPackage ( string packageFilePath, bool reinstall ) : void
packageFilePath string /// The absolute file system path to file on local host to install. ///
reinstall bool /// if re-install of app should be performed; otherwise, /// . ///
리턴 void

InstallRemotePackage() 공개 메소드

Installs the application package that was pushed to a temporary location on the device.
public InstallRemotePackage ( string remoteFilePath, bool reinstall ) : void
remoteFilePath string absolute file path to package file on device
reinstall bool set to if re-install of app should be performed
리턴 void

PackageManager() 공개 메소드

Initializes a new instance of the PackageManager class.
public PackageManager ( DeviceData device, bool thirdPartyOnly = false ) : Exceptions
device DeviceData /// The device on which to look for packages. ///
thirdPartyOnly bool /// to only indicate third party applications; /// to also include built-in applications. ///
리턴 Exceptions

RefreshPackages() 공개 메소드

Refreshes the packages.
public RefreshPackages ( ) : void
리턴 void

UninstallPackage() 공개 메소드

Uninstalls a package from the device.
public UninstallPackage ( string packageName ) : void
packageName string /// The name of the package to uninstall. ///
리턴 void