コンテンツに移動

よくアクセスするページ

最近アクセスしたページ

navigation
added in API level 1

android.hardware

Provides support for hardware features, such as the camera and other sensors. Be aware that not all Android-powered devices support all hardware features, so you should declare hardware that your application requires using the <uses-feature> manifest element.

Interfaces

Camera.AutoFocusCallback This interface was deprecated in API level 21. We recommend using the new android.hardware.camera2 API for new applications.  
Camera.AutoFocusMoveCallback This interface was deprecated in API level 21. We recommend using the new android.hardware.camera2 API for new applications.  
Camera.ErrorCallback This interface was deprecated in API level 21. We recommend using the new android.hardware.camera2 API for new applications.  
Camera.FaceDetectionListener This interface was deprecated in API level 21. We recommend using the new android.hardware.camera2 API for new applications.  
Camera.OnZoomChangeListener This interface was deprecated in API level 21. We recommend using the new android.hardware.camera2 API for new applications.  
Camera.PictureCallback This interface was deprecated in API level 21. We recommend using the new android.hardware.camera2 API for new applications.  
Camera.PreviewCallback This interface was deprecated in API level 21. We recommend using the new android.hardware.camera2 API for new applications.  
Camera.ShutterCallback This interface was deprecated in API level 21. We recommend using the new android.hardware.camera2 API for new applications.  
SensorEventListener Used for receiving notifications from the SensorManager when there is new sensor data. 
SensorEventListener2 Used for receiving a notification when a flush() has been successfully completed. 
SensorListener This interface was deprecated in API level 3. Use SensorEventListener instead.  

Classes

Camera This class was deprecated in API level 21. We recommend using the new android.hardware.camera2 API for new applications.  
Camera.Area This class was deprecated in API level 21. We recommend using the new android.hardware.camera2 API for new applications.  
Camera.CameraInfo This class was deprecated in API level 21. We recommend using the new android.hardware.camera2 API for new applications.  
Camera.Face This class was deprecated in API level 21. We recommend using the new android.hardware.camera2 API for new applications.  
Camera.Parameters This class was deprecated in API level 21. We recommend using the new android.hardware.camera2 API for new applications.  
Camera.Size This class was deprecated in API level 21. We recommend using the new android.hardware.camera2 API for new applications.  
ConsumerIrManager Class that operates consumer infrared on the device. 
ConsumerIrManager.CarrierFrequencyRange Represents a range of carrier frequencies (inclusive) on which the infrared transmitter can transmit  
GeomagneticField Estimates magnetic field at a given point on Earth, and in particular, to compute the magnetic declination from true north. 
HardwareBuffer HardwareBuffer wraps a native AHardwareBuffer object, which is a low-level object representing a memory buffer accessible by various hardware units. 
Sensor Class representing a sensor. 
SensorAdditionalInfo This class represents a Sensor additional information frame, which is reported through listener callback onSensorAdditionalInfo
SensorDirectChannel Class representing a sensor direct channel. 
SensorEvent This class represents a Sensor event and holds information such as the sensor's type, the time-stamp, accuracy and of course the sensor's data
SensorEventCallback Used for receiving sensor additional information frames. 
SensorManager

SensorManager lets you access the device's sensors

SensorManager.DynamicSensorCallback Used for receiving notifications from the SensorManager when dynamic sensors are connected or disconnected. 
TriggerEvent This class represents a Trigger Event - the event associated with a Trigger Sensor. 
TriggerEventListener This class is the listener used to handle Trigger Sensors. 
このサイトでは、ユーザーが選択したサイトの言語と表示設定を保存する目的で Cookie を使用しています。

Android デベロッパー向けの最新情報やヒントを入手して、Google Play での成功を手に入れましょう。

* 必須

送信しました

WeChat で Google Developers をフォローする

このサイトをで表示しますか?

ページの表示言語としてを選択しましたが、このサイトの言語はに設定されています。

言語設定を変更してこのサイトをで表示しますか?言語設定を変更する場合は、各ページの下にある言語メニューを使用してください。

このクラスには、API レベル 以上が必要です。

API レベル が選択されているため、このドキュメントは非表示になっています。左のナビゲーションの上にあるセレクタを使って、ドキュメントの API レベルを変更できます。

アプリに必要な API レベルを指定する方法について、詳しくは異なるプラットフォーム バージョンのサポートをご覧ください。

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)