CyDriveClient class

Constructors

CyDriveClient(String serverHost, {Account? account, String? deviceName})

Properties

account SafeAccount
no setter
deviceId String
latefinal
deviceName String
latefinal
hashCode int
The hash code for this object.
no setterinherited
isLogin bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverHost String
final

Methods

connectMessageService() Future<bool>
delete(String path) Future<FileInfo>
download(String path, String savePath, {bool autoStartTask = true, bool shouldTruncate = false}) Future
downloadShareFile(String link, String savePath, {bool autoStartTask = true, bool shouldTruncate = false}) Future<DataTask>
getMessages({DateTime? lastTime, int count = 10}) Future<List<Message>>
listDir(String path) Future<List<FileInfo>>
listenMessage(void onData(Message)) → void
login({Account? account}) Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendText(String text, String receiver) Future<Message>
share(String filePath, {int expire = 7 * Duration.minutesPerDay, List<int>? to, String password = '', int accessCount = -1}) Future<String>
toString() String
A string representation of this object.
inherited
upload(String path, String savePath, {bool autoStartTask = true, dynamic shouldTruncate = true}) Future

Operators

operator ==(Object other) bool
The equality operator.
inherited