C# 클래스 SharpAdbClient.SyncService

Provides access to the sync service running on the Android device. Allows you to list, download and upload files on the device.

상속: ISyncService, IDisposable
파일 보기 프로젝트 열기: ArduPilot/MissionPlanner 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetDirectoryListing ( string remotePath ) : IEnumerable
Open ( ) : void
Pull ( string remoteFilepath, Stream stream, CancellationToken cancellationToken ) : void
Push ( Stream stream, string remotePath, int permissions, System.DateTime timestamp, CancellationToken cancellationToken ) : void
Stat ( string remotePath ) : SharpAdbClient.FileStatistics
SyncService ( DeviceData device ) : Exceptions

Initializes a new instance of the SyncService class.

SyncService ( IAdbSocket socket, DeviceData device ) : Exceptions

Initializes a new instance of the SyncService class.

비공개 메소드들

메소드 설명
ReadStatistics ( SharpAdbClient.FileStatistics value ) : void

메소드 상세

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

GetDirectoryListing() 공개 메소드

public GetDirectoryListing ( string remotePath ) : IEnumerable
remotePath string
리턴 IEnumerable

Open() 공개 메소드

public Open ( ) : void
리턴 void

Pull() 공개 메소드

public Pull ( string remoteFilepath, Stream stream, CancellationToken cancellationToken ) : void
remoteFilepath string
stream Stream
cancellationToken System.Threading.CancellationToken
리턴 void

Push() 공개 메소드

public Push ( Stream stream, string remotePath, int permissions, System.DateTime timestamp, CancellationToken cancellationToken ) : void
stream Stream
remotePath string
permissions int
timestamp System.DateTime
cancellationToken System.Threading.CancellationToken
리턴 void

Stat() 공개 메소드

public Stat ( string remotePath ) : SharpAdbClient.FileStatistics
remotePath string
리턴 SharpAdbClient.FileStatistics

SyncService() 공개 메소드

Initializes a new instance of the SyncService class.
public SyncService ( DeviceData device ) : Exceptions
device DeviceData /// The device on which to interact with the files. ///
리턴 Exceptions

SyncService() 공개 메소드

Initializes a new instance of the SyncService class.
public SyncService ( IAdbSocket socket, DeviceData device ) : Exceptions
socket IAdbSocket /// A that enables to connection with the /// adb server. ///
device DeviceData /// The device on which to interact with the files. ///
리턴 Exceptions