未验证 提交 bdebdb8b 编写于 作者: O openharmony_ci 提交者: Gitee

!15889 update msdp api describe

Merge pull request !15889 from mayunteng/311
......@@ -70,7 +70,7 @@ Subscribes to the device status.
**Parameters**
| Name | Type | Mandatory| Description |
| Parameter Name | Type | Mandatory| Description |
| -------------------- | -------------------------------------------------- | ---- | ---------------------------- |
| activity | [ActivityType](#activitytype) | Yes | Device status type. |
| event | [ActivityEvent](#activityevent) | Yes | Event type. |
......@@ -96,7 +96,7 @@ Obtains the device status.
**Parameters**
| Name | Type | Mandatory| Description |
| Parameter Name | Type | Mandatory| Description |
| -------------------- | -------------------------------------------------- | ---- | ---------------------------- |
| activity | [ActivityType](#activitytype) | Yes | Device status type. |
| callback | Callback<[ActivityResponse](#activityresponse)\> | Yes | Callback used to receive reported data. |
......@@ -119,7 +119,7 @@ Unsubscribes from the device status.
**Parameters**
| Name | Type | Mandatory| Description |
| Parameter Name | Type | Mandatory| Description |
| -------------------- | -------------------------------------------------- | ---- | ---------------------------- |
| activity | [ActivityType](#activitytype) | Yes | Device status type. |
| event | [ActivityEvent](#activityevent) | Yes | Event type. |
......
......@@ -18,11 +18,11 @@ import stationary from '@ohos.stationary'
服务响应抽象接口。
**系统能力** SystemCapability.Msdp.DeviceStatus.Stationary
**系统能力**SystemCapability.Msdp.DeviceStatus.Stationary
### 属性
| 名称 | 参数类型 | 可读 | 可写 | 说明 |
| 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- |
| state | [ActivityState](#activitystate) | 是 | 否 | 设备状态变化返回值。 |
......@@ -30,9 +30,9 @@ import stationary from '@ohos.stationary'
设备状态类型。
**系统能力** SystemCapability.Msdp.DeviceStatus.Stationary
**系统能力**SystemCapability.Msdp.DeviceStatus.Stationary
| 名称 | 描述 |
| 名称 | 描述说明 |
| -------- | -------- |
| still | 绝对静止。 |
| relativeStill | 相对静止。 |
......@@ -41,9 +41,9 @@ import stationary from '@ohos.stationary'
设备状态事件。
**系统能力** SystemCapability.Msdp.DeviceStatus.Stationary
**系统能力**SystemCapability.Msdp.DeviceStatus.Stationary
| 变量 | 值 | 说明 |
| 名称 | 值 | 说明 |
| ------------------------------ | ---- | ---------------------------------------- |
| ENTER | 1 | 进入。 |
| EXIT | 2 | 退出。 |
......@@ -53,9 +53,9 @@ import stationary from '@ohos.stationary'
设备状态返回值。
**系统能力** SystemCapability.Msdp.DeviceStatus.Stationary
**系统能力**SystemCapability.Msdp.DeviceStatus.Stationary
| 变量 | 值 | 说明 |
| 名称 | 值 | 说明 |
| ------------------------------ | ---- | ---------------------------------------- |
| ENTER | 1 | 进入。 |
| EXIT | 2 | 退出。 |
......@@ -66,11 +66,11 @@ on(activity: ActivityType, event: ActivityEvent, reportLatencyNs: number, callba
设备状态管理,订阅设备状态服务。
**系统能力** SystemCapability.Msdp.DeviceStatus.Stationary
**系统能力**SystemCapability.Msdp.DeviceStatus.Stationary
**参数:**
| 名称 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
| -------------------- | -------------------------------------------------- | ---- | ---------------------------- |
| activity | [ActivityType](#activitytype) | 是 | 设备状态能力类型。 |
| event | [ActivityEvent](#activityevent) | 是 | 事件类型。 |
......@@ -92,11 +92,11 @@ once(activity: ActivityType, callback: Callback&lt;ActivityResponse&gt;): void
设备状态管理,查询设备状态。
**系统能力** SystemCapability.Msdp.DeviceStatus.Stationary
**系统能力**SystemCapability.Msdp.DeviceStatus.Stationary
**参数:**
| 名称 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
| -------------------- | -------------------------------------------------- | ---- | ---------------------------- |
| activity | [ActivityType](#activitytype) | 是 | 设备状态能力类型。 |
| callback | Callback<[ActivityResponse](#activityresponse)\> | 是 | 回调函数,接收上报状态变化事件。 |
......@@ -115,11 +115,11 @@ off(activity: ActivityType, event: ActivityEvent, callback?: Callback&lt;Activit
设备状态管理,取消订阅设备状态服务。
**系统能力** SystemCapability.Msdp.DeviceStatus.Stationary
**系统能力**SystemCapability.Msdp.DeviceStatus.Stationary
**参数:**
| 名称 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
| -------------------- | -------------------------------------------------- | ---- | ---------------------------- |
| activity | [ActivityType](#activitytype) | 是 | 设备状态能力类型。 |
| event | [ActivityEvent](#activityevent) | 是 | 事件类型。 |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册