C# Class SharpAdbClient.SyncService

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

Inheritance: ISyncService, IDisposable
ファイルを表示 Open project: ArduPilot/MissionPlanner Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
ReadStatistics ( SharpAdbClient.FileStatistics value ) : void

Method Details

Dispose() public method

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

GetDirectoryListing() public method

public GetDirectoryListing ( string remotePath ) : IEnumerable
remotePath string
return IEnumerable

Open() public method

public Open ( ) : void
return void

Pull() public method

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

Push() public method

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
return void

Stat() public method

public Stat ( string remotePath ) : SharpAdbClient.FileStatistics
remotePath string
return SharpAdbClient.FileStatistics

SyncService() public method

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

SyncService() public method

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. ///
return Exceptions