中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Andrdoid Sensors Overview (探測器概述)一

發布時間:2020-06-21 09:34:08 來源:網絡 閱讀:354 作者:weijianzhenli 欄目:移動開發

Most Android-powered devices have built-in sensors that measure motion, orientation, and 

大部分Android設備有內置的探測器,用于探測運動,方位,及各種環境條件。

various environmental conditions. These sensors are capable of providing raw data with high

如果你想要探測三位設備運動或定位,或者想要探測設備附近環境變化,這些探測器所能夠提供的高精準的探測數值將會非常有用。

precision and accuracy, and are useful if you want to monitor three-dimensional device movement or positioning, or you want to monitor changes in the ambient environment near a device. For example, a game might track readings from a device's gravity sensor to infer

例如,一款游戲可能需要持續讀取設備的重力感應數值來解析復雜的用戶姿勢和運動,比如傾斜,晃動,旋轉,或搖擺。類似地,一個天氣應用會使用溫度探測器和濕度探測器來計算并報告結露點,又或者一款旅游應用使用地磁場探測器和加速器來報告指南針方位。

complex user gestures and motions, such as tilt, shake, rotation, or swing. Likewise, a weather application might use a device's temperature sensor and humidity sensor to calculate and report the dewpoint, or a travel application might use the geomagnetic field sensor and accelerometer to report a compass bearing.

The Android platform supports three broad categories of sensors:

Android 平臺支持三大類傳感器:

  • Motion sensors

  • 運動傳感器

    These sensors measure acceleration forces and rotational forces along three axes. This  category includes accelerometers, gravity sensors, gyroscopes, and rotational vector sensors.

    這類探測器通過三個軸測量加速力量和旋轉力量。包括加速計,重力探測器,陀螺儀,和穿轉矢量傳感器。

  • Environmental sensors

  • 環境傳感器

    These sensors measure various environmental parameters, such as ambient air temperature  and pressure, illumination, and humidity. This category includes barometers, photometers, and thermometers.

    這類探測器測量各種環境參數,例如環境的氣溫與氣壓,光照與濕度。包括氣壓計,光度計,和溫度計。

  • Position sensors

  • 位置探測器

    These sensors measure the physical position of a device. This category includes orientation sensors and magnetometers.

    這類探測器測量設備的物理位置。包括定位傳感器和磁力計。

You can access sensors available on the device and acquire raw sensor data by using the Android sensor framework. The sensor framework provides several classes and interfaces that help you perform a wide variety of sensor-related tasks. For example, you can use the sensor framework to do the following:

通過使用Android sensor framework,你可以訪問到設備上可用的探測器并獲取原始的探測數據。這個探測框架提供了幾個類和接口幫助你執行一系列探測器相關的任務。例如,你可以使用 sensor framework 來做以下事情:

  • Determine which sensors are available on a device.

  • 確定設備上那些探測器可用。

  • Determine an individual sensor's capabilities, such as its maximum range, manufacturer, power requirements, and resolution.

  • 確定某個探測器的功能,例如最大探測距離,制造商,供電要求,和分辨率。

  • Acquire raw sensor data and define the minimum rate at which you acquire sensor data.

  • 獲取原始探測數據并定義獲取數據的最小速度。

  • Register and unregister sensor event listeners that monitor sensor changes.

  • 注冊和注銷監測探測器變化的sensor event listners。

This topic provides an overview of the sensors that are available on the Android platform. It also provides an introduction to the sensor framework.

這節提供傳感器的概述,并介紹sensor framework。

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

洪江市| 长寿区| 金寨县| 桓仁| 深州市| 察哈| 吕梁市| 浙江省| 武强县| 绥芬河市| 武宁县| 保德县| 聂荣县| 临安市| 清水县| 沂源县| 航空| 大新县| 湖州市| 华坪县| 秦皇岛市| 翁源县| 台东县| 泉州市| 定边县| 运城市| 宿松县| 佛山市| 龙山县| 大丰市| 德州市| 灵璧县| 和林格尔县| 济源市| 蒙城县| 金华市| 澳门| 斗六市| 军事| 嘉黎县| 海城市|