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

!16086 翻译完成:15604 修改docs文档

Merge pull request !16086 from wusongqing/TR15604
...@@ -2661,7 +2661,7 @@ try { ...@@ -2661,7 +2661,7 @@ try {
## sensor.getAngleVariation<sup>9+</sup> ## sensor.getAngleVariation<sup>9+</sup>
getAngleVariation(currentRotationMatrix: Array&lt;number&gt;, preRotationMatrix: Array&lt;number&gt;, getAngleVariation(currentRotationMatrix: Array&lt;number&gt;, preRotationMatrix: Array&lt;number&gt;,
callback: AsyncCallback<Array&lt;number&gt;>): void callback: AsyncCallback&lt;Array&lt;number&gt;&gt;): void
Obtains the angle change between two rotation matrices. This API uses an asynchronous callback to return the result. Obtains the angle change between two rotation matrices. This API uses an asynchronous callback to return the result.
...@@ -2717,7 +2717,7 @@ try { ...@@ -2717,7 +2717,7 @@ try {
## sensor.getAngleVariation<sup>9+</sup> ## sensor.getAngleVariation<sup>9+</sup>
getAngleVariation(currentRotationMatrix: Array&lt;number&gt;, preRotationMatrix: Array&lt;number&gt;): Promise<Array&lt;number&gt;> getAngleVariation(currentRotationMatrix: Array&lt;number&gt;, preRotationMatrix: Array&lt;number&gt;): Promise&lt;Array&lt;number&gt;&gt;
Obtains the angle change between two rotation matrices. This API uses a promise to return the result. Obtains the angle change between two rotation matrices. This API uses a promise to return the result.
...@@ -2777,7 +2777,7 @@ try { ...@@ -2777,7 +2777,7 @@ try {
## sensor.getRotationMatrix<sup>9+</sup> ## sensor.getRotationMatrix<sup>9+</sup>
getRotationMatrix(rotationVector: Array&lt;number&gt;, callback: AsyncCallback<Array&lt;number&gt;>): void getRotationMatrix(rotationVector: Array&lt;number&gt;, callback: AsyncCallback&lt;Array&lt;number&gt;&gt;): void
Obtains the rotation matrix from a rotation vector. This API uses an asynchronous callback to return the result. Obtains the rotation matrix from a rotation vector. This API uses an asynchronous callback to return the result.
...@@ -2819,7 +2819,7 @@ try { ...@@ -2819,7 +2819,7 @@ try {
## sensor.getRotationMatrix<sup>9+</sup> ## sensor.getRotationMatrix<sup>9+</sup>
getRotationMatrix(rotationVector: Array&lt;number&gt;): Promise<Array<number&gt;> getRotationMatrix(rotationVector: Array&lt;number&gt;): Promise&lt;Array&lt;number&gt;&gt;
Obtains the rotation matrix from a rotation vector. This API uses a promise to return the result. Obtains the rotation matrix from a rotation vector. This API uses a promise to return the result.
...@@ -2866,7 +2866,7 @@ try { ...@@ -2866,7 +2866,7 @@ try {
## sensor.transformRotationMatrix<sup>9+</sup> ## sensor.transformRotationMatrix<sup>9+</sup>
transformRotationMatrix(inRotationVector: Array&lt;number&gt;, coordinates: CoordinatesOptions, transformRotationMatrix(inRotationVector: Array&lt;number&gt;, coordinates: CoordinatesOptions,
callback: AsyncCallback<Array&lt;number&gt;>): void callback: AsyncCallback&lt;Array&lt;number&gt;&gt;): void
Transforms a rotation vector based on the coordinate system. This API uses an asynchronous callback to return the result. Transforms a rotation vector based on the coordinate system. This API uses an asynchronous callback to return the result.
...@@ -2913,7 +2913,7 @@ try { ...@@ -2913,7 +2913,7 @@ try {
## sensor.transformRotationMatrix<sup>9+</sup> ## sensor.transformRotationMatrix<sup>9+</sup>
transformRotationMatrix(inRotationVector: Array&lt;number&gt;, coordinates: CoordinatesOptions): Promise<Array&lt;number&gt;> transformRotationMatrix(inRotationVector: Array&lt;number&gt;, coordinates: CoordinatesOptions): Promise&lt;Array&lt;number&gt;&gt;
Transforms a rotation vector based on the coordinate system. This API uses a promise to return the result. Transforms a rotation vector based on the coordinate system. This API uses a promise to return the result.
...@@ -2964,7 +2964,7 @@ try { ...@@ -2964,7 +2964,7 @@ try {
## sensor.getQuaternion<sup>9+</sup> ## sensor.getQuaternion<sup>9+</sup>
getQuaternion(rotationVector: Array&lt;number&gt;, callback: AsyncCallback<Array&lt;number&gt;>): void getQuaternion(rotationVector: Array&lt;number&gt;, callback: AsyncCallback&lt;Array&lt;number&gt;&gt;): void
Obtains the quaternion from a rotation vector. This API uses an asynchronous callback to return the result. Obtains the quaternion from a rotation vector. This API uses an asynchronous callback to return the result.
...@@ -3006,7 +3006,7 @@ try { ...@@ -3006,7 +3006,7 @@ try {
## sensor.getQuaternion<sup>9+</sup> ## sensor.getQuaternion<sup>9+</sup>
getQuaternion(rotationVector: Array&lt;number&gt;): Promise<Array&lt;number&gt;> getQuaternion(rotationVector: Array&lt;number&gt;): Promise&lt;Array&lt;number&gt;&gt;
Obtains the quaternion from a rotation vector. This API uses a promise to return the result. Obtains the quaternion from a rotation vector. This API uses a promise to return the result.
...@@ -3052,7 +3052,7 @@ try { ...@@ -3052,7 +3052,7 @@ try {
## sensor.getOrientation<sup>9+</sup> ## sensor.getOrientation<sup>9+</sup>
getOrientation(rotationMatrix: Array&lt;number&gt;, callback: AsyncCallback<Array&lt;number&gt;>): void getOrientation(rotationMatrix: Array&lt;number&gt;, callback: AsyncCallback&lt;Array&lt;number&gt;&gt;): void
Obtains the device direction based on the rotation matrix. This API uses an asynchronous callback to return the result. Obtains the device direction based on the rotation matrix. This API uses an asynchronous callback to return the result.
...@@ -3101,7 +3101,7 @@ try { ...@@ -3101,7 +3101,7 @@ try {
## sensor.getOrientation<sup>9+</sup> ## sensor.getOrientation<sup>9+</sup>
getOrientation(rotationMatrix: Array&lt;number&gt;): Promise<Array&lt;number&gt;> getOrientation(rotationMatrix: Array&lt;number&gt;): Promise&lt;Array&lt;number&gt;&gt;
Obtains the device direction based on the rotation matrix. This API uses a promise to return the result. Obtains the device direction based on the rotation matrix. This API uses a promise to return the result.
...@@ -3193,7 +3193,7 @@ try { ...@@ -3193,7 +3193,7 @@ try {
## sensor.getRotationMatrix<sup>9+</sup> ## sensor.getRotationMatrix<sup>9+</sup>
getRotationMatrix(gravity: Array&lt;number&gt;, geomagnetic: Array&lt;number&gt;,): Promise&lt;RotationMatrixResponse&gt; getRotationMatrix(gravity: Array&lt;number&gt;, geomagnetic: Array&lt;number&gt;): Promise&lt;RotationMatrixResponse&gt;
Obtains the rotation matrix based on a gravity vector and geomagnetic vector. This API uses a promise to return the result. Obtains the rotation matrix based on a gravity vector and geomagnetic vector. This API uses a promise to return the result.
...@@ -3239,7 +3239,7 @@ try { ...@@ -3239,7 +3239,7 @@ try {
## sensor.getSensorList<sup>9+</sup> ## sensor.getSensorList<sup>9+</sup>
getSensorList(callback: AsyncCallback<Array&lt;Sensor&gt;>): void getSensorList(callback: AsyncCallback&lt;Array&lt;Sensor&gt;&gt;): void
Obtains information about all sensors on the device. This API uses an asynchronous callback to return the result. Obtains information about all sensors on the device. This API uses an asynchronous callback to return the result.
...@@ -3249,7 +3249,7 @@ Obtains information about all sensors on the device. This API uses an asynchrono ...@@ -3249,7 +3249,7 @@ Obtains information about all sensors on the device. This API uses an asynchrono
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | ---------------------------------------------- | ---- | ---------------- | | -------- | ---------------------------------------------- | ---- | ---------------- |
| callback | AsyncCallback<Array&lt;[Sensor](#sensor9)&gt;> | Yes | Callback used to return the sensor list.| | callback | AsyncCallback&lt;Array&lt;[Sensor](#sensor9)&gt;&gt; | Yes | Callback used to return the sensor list.|
**Error code** **Error code**
...@@ -3279,7 +3279,7 @@ try { ...@@ -3279,7 +3279,7 @@ try {
## sensor.getSensorList<sup>9+</sup> ## sensor.getSensorList<sup>9+</sup>
getSensorList(): Promise< Array&lt;Sensor&gt;> getSensorList(): Promise&lt;Array&lt;Sensor&gt;&gt;
Obtains information about all sensors on the device. This API uses a promise to return the result. Obtains information about all sensors on the device. This API uses a promise to return the result.
...@@ -3289,7 +3289,7 @@ Obtains information about all sensors on the device. This API uses a promise to ...@@ -3289,7 +3289,7 @@ Obtains information about all sensors on the device. This API uses a promise to
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| ------- | ---------------------------------------- | ---- | ---------------- | | ------- | ---------------------------------------- | ---- | ---------------- |
| promise | Promise<Array&lt;[Sensor](#sensor9)&gt;> | Yes | Promise used to return the sensor list.| | promise | Promise&lt;Array&lt;[Sensor](#sensor9)&gt;&gt; | Yes | Promise used to return the sensor list.|
**Error code** **Error code**
...@@ -3831,18 +3831,6 @@ Describes the geographical location. ...@@ -3831,18 +3831,6 @@ Describes the geographical location.
| longitude | number | Yes | Yes | Longitude. | | longitude | number | Yes | Yes | Longitude. |
| altitude | number | Yes | Yes | Altitude.| | altitude | number | Yes | Yes | Altitude.|
## LocationOptions
Describes the geographical location.
**System capability**: SystemCapability.Sensors.Sensor
| Name | Type | Readable | Writable | Description |
| --------- | ------ | -------- | -------- | ----------- |
| latitude | number | Yes | Yes | Latitude. |
| longitude | number | Yes | Yes | Longitude. |
| altitude | number | Yes | Yes | Altitude. |
## sensor.on<sup>(deprecated)</sup> ## sensor.on<sup>(deprecated)</sup>
### ACCELEROMETER<sup>(deprecated)</sup> ### ACCELEROMETER<sup>(deprecated)</sup>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册