diff --git a/en/application-dev/reference/apis/js-apis-sensor.md b/en/application-dev/reference/apis/js-apis-sensor.md index 17649a554d3410227bb695f992a81ace9bb04307..440a79eab1934eba07f7ca2c90cdc20c96fafe62 100644 --- a/en/application-dev/reference/apis/js-apis-sensor.md +++ b/en/application-dev/reference/apis/js-apis-sensor.md @@ -30,7 +30,7 @@ To use the gyroscope sensor, you must declare the **ohos.permission.GYROSCOPE** on(type: sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: AsyncCallback<AccelerometerResponse>,options?: Options): void -Subscribes to acceleration sensor data changes. If this API is called multiple times for the same application, the last call takes effect. +Subscribes to data changes of the acceleration sensor. If this API is called multiple times for the same application, the last call takes effect. - Parameters @@ -121,7 +121,7 @@ Subscribes to data changes of the uncalibrated acceleration sensor. If this API on(type: sensor.SensorType.SENSOR_TYPE_ID_GRAVITY, callback: AsyncCallback<GravityResponse>,options?: Options): void -Subscribes to gravity sensor data changes. If this API is called multiple times for the same application, the last call takes effect. +Subscribes to data changes of the gravity sensor. If this API is called multiple times for the same application, the last call takes effect. - Parameters | Name| Type| Mandatory| Description| @@ -150,7 +150,7 @@ Subscribes to gravity sensor data changes. If this API is called multiple times on(type: sensor.SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: AsyncCallback<GyroscopeResponse>, options?: Options): void -Subscribes to gyroscope sensor data changes. If this API is called multiple times for the same application, the last call takes effect. +Subscribes to data changes of the gyroscope sensor. If this API is called multiple times for the same application, the last call takes effect. - Parameters | Name| Type| Mandatory| Description| @@ -265,7 +265,7 @@ Subscribes to data changes of the pedometer detection sensor. If this API is cal on(type: sensor.SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: AsyncCallback<PedometerResponse>, options?: Options): void -Subscribes to pedometer sensor data changes. If this API is called multiple times for the same application, the last call takes effect. +Subscribes to data changes of the pedometer sensor. If this API is called multiple times for the same application, the last call takes effect. - Parameters | Name| Type| Mandatory| Description| @@ -380,7 +380,7 @@ Subscribes to data changes of the uncalibrated magnetic field sensor. If this AP on(type:sensor.SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: AsyncCallback<ProximityResponse>,options?: Options): void -Subscribes to proximity sensor data changes. If this API is called multiple times for the same application, the last call takes effect. +Subscribes to data changes of the proximity sensor. If this API is called multiple times for the same application, the last call takes effect. - Parameters | Name| Type| Mandatory| Description| @@ -407,7 +407,7 @@ Subscribes to proximity sensor data changes. If this API is called multiple time on(type: sensor.SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: AsyncCallback<HumidityResponse>,options?: Options): void -Subscribes to humidity sensor data changes. If this API is called multiple times for the same application, the last call takes effect. +Subscribes to data changes of the humidity sensor. If this API is called multiple times for the same application, the last call takes effect. - Parameters | Name| Type| Mandatory| Description| @@ -434,7 +434,7 @@ Subscribes to humidity sensor data changes. If this API is called multiple times on(type:sensor.SensorType.SENSOR_TYPE_ID_BAROMETER, callback: AsyncCallback<BarometerResponse>,options?: Options): void -Subscribes to barometer sensor data changes. If this API is called multiple times for the same application, the last call takes effect. +Subscribes to data changes of the barometer sensor. If this API is called multiple times for the same application, the last call takes effect. - Parameters | Name| Type| Mandatory| Description| @@ -515,7 +515,7 @@ Subscribes to data changes of the ambient light sensor. If this API is called mu on(type: sensor.SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: AsyncCallback<OrientationResponse>, options?: Options): void -Subscribes to orientation sensor data changes. If this API is called multiple times for the same application, the last call takes effect. +Subscribes to data changes of the orientation sensor. If this API is called multiple times for the same application, the last call takes effect. - Parameters | Name| Type| Mandatory| Description| @@ -544,7 +544,7 @@ Subscribes to orientation sensor data changes. If this API is called multiple ti on(type:sensor.SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR,callback:AsyncCallback<RotationVectorResponse>,options?: Options): void -Subscribes to rotation vector data changes. If this API is called multiple times for the same application, the last call takes effect. +Subscribes to data changes of the rotation vector sensor. If this API is called multiple times for the same application, the last call takes effect. - Parameters | Name| Type| Mandatory| Description| @@ -573,7 +573,7 @@ Subscribes to rotation vector data changes. If this API is called multiple times on(type: sensor.SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: AsyncCallback<WearDetectionResponse>,options?: Options): void -Subscribes to wear detection data changes. If this API is called multiple times for the same application, the last call takes effect. +Subscribes to data changes of the wear detection sensor. If this API is called multiple times for the same application, the last call takes effect. - Parameters | Name| Type| Mandatory| Description| @@ -600,7 +600,7 @@ Subscribes to wear detection data changes. If this API is called multiple times once(type: sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: AsyncCallback<AccelerometerResponse>): void -Subscribes to only one acceleration sensor data change. +Subscribes to only one data change of the acceleration sensor. - Parameters | Name| Type| Mandatory| Description| @@ -818,7 +818,7 @@ Subscribes to only one data change of the pedometer detection sensor. once(type: sensor.SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: AsyncCallback<PedometerResponse>): void -Subscribes to only one pedometer sensor data change. +Subscribes to only one data change of the pedometer sensor. - Parameters | Name| Type| Mandatory| Description| @@ -925,7 +925,7 @@ Subscribes to only one data change of the uncalibrated magnetic field sensor. once(type: sensor.SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: AsyncCallback<ProximityResponse>): void -Subscribes to only one proximity sensor data change. +Subscribes to only one data change of the proximity sensor. - Parameters | Name| Type| Mandatory| Description| @@ -950,7 +950,7 @@ Subscribes to only one proximity sensor data change. once(type: sensor.SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: AsyncCallback<HumidityResponse>): void -Subscribes to only one humidity sensor data change. +Subscribes to only one data change of the humidity sensor. - Parameters | Name| Type| Mandatory| Description| @@ -1077,7 +1077,7 @@ Subscribes to only one data change of the orientation sensor. once(type: sensor.SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: AsyncCallback<RotationVectorResponse>): void -Subscribes to only one rotation vector data change. +Subscribes to only one data change of the rotation vector sensor. - Parameters | Name| Type| Mandatory| Description| diff --git a/en/application-dev/reference/apis/js-apis-vibrator.md b/en/application-dev/reference/apis/js-apis-vibrator.md index 0e1b2fd1be7e9a30cb832558ecaa5c7960050d9e..bbe92f8cfc412f7580dcc41f27d0ba4ef78b2695 100644 --- a/en/application-dev/reference/apis/js-apis-vibrator.md +++ b/en/application-dev/reference/apis/js-apis-vibrator.md @@ -152,7 +152,7 @@ Stops the vibration based on the specified **stopMode**. This method uses a prom stop(stopMode: VibratorStopMode, callback?: AsyncCallback<void>): void; -Stops the vibration based on the specified **stopMode**. This method uses a callback to return the execution result. If the specified **stopMode** is different from the mode used to trigger the vibration, this method fails to be called. +Stops the vibration based on the specified **stopMode**. This method uses an asynchronous callback to return the execution result. If the specified **stopMode** is different from the mode used to trigger the vibration, this method fails to be called. - Parameters | Name| Type| Mandatory| Description|