未验证 提交 1198d1bb 编写于 作者: 朱天怡 提交者: Gitee

修改参数

Signed-off-by: N朱天怡 <zhutianyi2@huawei.com>
上级 1de986fa
......@@ -40,18 +40,16 @@ startWork(work: WorkInfo): boolean
```js
let workInfo = {
workId: 1,
batteryLevel:50,
batteryStatus:workScheduler.BatteryStatus.BATTERY_STATUS_LOW,
isRepeat: false,
isPersisted: true,
bundleName: "com.example.myapplication",
abilityName: "MyExtension",
parameters: {
mykey0: 2222,
mykey1: "ssssssssssssssssssssssssss",
mykey0: 1,
mykey1: "string value",
mykey2: true,
mykey3: 1.5,
mykey4: 213749534591254587511
mykey3: 1.5
}
}
var res = workScheduler.startWork(workInfo);
......@@ -83,18 +81,16 @@ stopWork(work: WorkInfo, needCancel?: boolean): boolean
```js
let workInfo = {
workId: 1,
batteryLevel:50,
batteryStatus:workScheduler.BatteryStatus.BATTERY_STATUS_LOW,
isRepeat: false,
isPersisted: true,
bundleName: "com.example.myapplication",
abilityName: "MyExtension",
parameters: {
mykey0: 2222,
mykey1: "ssssssssssssssssssssssssss",
mykey0: 1,
mykey1: "string value",
mykey2: true,
mykey3: 1.5,
mykey4: 213749534591254587511
mykey3: 1.5
}
}
var res = workScheduler.stopWork(workInfo, false);
......
......@@ -81,19 +81,17 @@ onWorkStop(work: WorkInfo): void; | 延迟调度任务结束回调
let workInfo = {
workId: 1,
batteryLevel:50,
batteryStatus:workScheduler.BatteryStatus.BATTERY_STATUS_LOW,
isRepeat: false,
isPersisted: true,
bundleName: "com.example.myapplication",
abilityName: "MyExtension",
parameters: {
mykey0: 2222,
mykey1: "ssssssssssssssssssssssssss",
mykey2: true,
mykey3: 1.5,
mykey4: 213749534591254587511
}
mykey0: 1,
mykey1: "string value",
mykey2: true,
mykey3: 1.5
}
}
var res = workScheduler.startWork(workInfo);
console.info("workschedulerLog res:" + res);
......@@ -106,19 +104,17 @@ onWorkStop(work: WorkInfo): void; | 延迟调度任务结束回调
let workInfo = {
workId: 1,
batteryLevel:50,
batteryStatus:workScheduler.BatteryStatus.BATTERY_STATUS_LOW,
isRepeat: false,
isPersisted: true,
bundleName: "com.example.myapplication",
abilityName: "MyExtension",
parameters: {
mykey0: 2222,
mykey1: "ssssssssssssssssssssssssss",
mykey2: true,
mykey3: 1.5,
mykey4: 213749534591254587511
}
mykey0: 1,
mykey1: "string value",
mykey2: true,
mykey3: 1.5
}
}
var res = workScheduler.stopWork(workInfo, false);
console.info("workschedulerLog res:" + res);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册