diff --git a/en/application-dev/reference/apis/js-apis-stationary.md b/en/application-dev/reference/apis/js-apis-stationary.md index bd7c29020ed3d0b65501421c4b9547423986fdf9..e065e9478c631af8cc3cfe125ac71f29e2b9dadb 100644 --- a/en/application-dev/reference/apis/js-apis-stationary.md +++ b/en/application-dev/reference/apis/js-apis-stationary.md @@ -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. | diff --git a/zh-cn/application-dev/reference/apis/js-apis-stationary.md b/zh-cn/application-dev/reference/apis/js-apis-stationary.md index acb4c1767efade3f622be4c76d074bc653319e17..04ee61e5860902c76818753ade4c4e863d89c3d4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-stationary.md +++ b/zh-cn/application-dev/reference/apis/js-apis-stationary.md @@ -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<ActivityResponse>): 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<Activit 设备状态管理,取消订阅设备状态服务。 -**系统能力** SystemCapability.Msdp.DeviceStatus.Stationary +**系统能力**:SystemCapability.Msdp.DeviceStatus.Stationary **参数:** -| 名称 | 类型 | 必填 | 说明 | +| 参数名 | 类型 | 必填 | 说明 | | -------------------- | -------------------------------------------------- | ---- | ---------------------------- | | activity | [ActivityType](#activitytype) | 是 | 设备状态能力类型。 | | event | [ActivityEvent](#activityevent) | 是 | 事件类型。 |