提交 8219dd34 编写于 作者: S sunwenyu123

ArkTS适配

Signed-off-by: Nsunwenyu123 <sunwenyu5@huawei.com>
Change-Id: Id89fe54fba47d33a93400157560237d216f95949
上级 c79c7308
......@@ -10,7 +10,7 @@
## 导入模块
```js
```ts
import dragInteraction from '@ohos.deviceStatus.dragInteraction'
```
......@@ -28,7 +28,7 @@ import dragInteraction from '@ohos.deviceStatus.dragInteraction'
**示例**
```js
```ts
enum DragState {
MSG_DRAG_STATE_START = 1,
MSG_DRAG_STATE_STOP = 2,
......@@ -53,7 +53,7 @@ on(type: 'drag', callback: Callback&lt;DragState&gt;): void;
**示例**
```js
```ts
try {
dragInteraction.on('drag', (data : DragState) => {
console.log(`Drag interaction event: ${JSON.stringify(data)}`);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册