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
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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