toggle menu
opensdk
androidJvm
switch theme
search in API
opensdk
/
com.alicloud.databox.opensdk.io
/
BaseTask
Base
Task
abstract
class
BaseTask
(
driveId
:
String
,
fileId
:
String
)
Members
Constructors
Base
Task
Link copied to clipboard
constructor
(
driveId
:
String
,
fileId
:
String
)
Types
Task
State
Link copied to clipboard
sealed
class
TaskState
Task state 密封类封装各运行状态 和关联数据
Functions
add
State
Change
Link copied to clipboard
abstract
fun
addStateChange
(
onChange
:
Consumer
<
BaseTask.TaskState
>
)
cancel
Link copied to clipboard
abstract
fun
cancel
(
)
Cancel 取消任务
get
Drive
Id
Link copied to clipboard
fun
getDriveId
(
)
:
String
get
File
Id
Link copied to clipboard
fun
getFileId
(
)
:
String
get
Task
Name
Link copied to clipboard
abstract
fun
getTaskName
(
)
:
String
remove
State
Change
Link copied to clipboard
abstract
fun
removeStateChange
(
onChange
:
Consumer
<
BaseTask.TaskState
>
)
start
Link copied to clipboard
abstract
fun
start
(
)
:
Boolean
Start