提交 dbae3262 编写于 作者: W wusongqing

updated docs

Signed-off-by: Nwusongqing <wusongqing@huawei.com>
上级 ef76e295
......@@ -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&lt;AccelerometerResponse&gt;,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&lt;GravityResponse&gt;,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&lt;GyroscopeResponse&gt;, 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&lt;PedometerResponse&gt;, 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&lt;ProximityResponse&gt;,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&lt;HumidityResponse&gt;,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&lt;BarometerResponse&gt;,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&lt;OrientationResponse&gt;, 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&lt;RotationVectorResponse&gt;,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&lt;WearDetectionResponse&gt;,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&lt;AccelerometerResponse&gt;): 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&lt;PedometerResponse&gt;): 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&lt;ProximityResponse&gt;): 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&lt;HumidityResponse&gt;): 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&lt;RotationVectorResponse&gt;): 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|
......
......@@ -152,7 +152,7 @@ Stops the vibration based on the specified **stopMode**. This method uses a prom
stop(stopMode: VibratorStopMode, callback?: AsyncCallback&lt;void&gt;): 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|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册