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.
Type | Reason |
---|---|
AccuracyChangedEventArgs | Documentation for this section has not yet been entered. |
Axis | Enumerates values returned by several methods of Android.Hardware.Axis and taken as a parameter of the Android.Hardware.SensorManager.RemapCoordinateSystem, and Android.Hardware.SensorManager.RemapCoordinateSystem members. |
Camera | The Camera class is used to set image capture settings, start/stop preview, snap pictures, and retrieve frames for encoding for video. |
Camera+Area | |
Camera+CameraInfo | Information about a camera |
Camera+Face | Information about a face identified through camera face detection. |
Camera+FaceDetectionEventArgs | Provides data for the Android.Hardware.Camera.FaceDetection event. |
Camera+IAutoFocusCallback | Callback interface used to notify on completion of camera auto focus. |
Camera+IAutoFocusMoveCallback | Callback interface used to notify on auto focus start and stop. |
Camera+IErrorCallback | Callback interface for camera error notification. |
Camera+IFaceDetectionListener | Callback interface for face detected in the preview frame. |
Camera+IOnZoomChangeListener | Callback interface for zoom changes during a smooth zoom operation. |
Camera+IPictureCallback | Callback interface used to supply image data from a photo capture. |
Camera+IPreviewCallback | Callback interface used to deliver copies of preview frames as they are displayed. |
Camera+IShutterCallback | Callback interface used to signal the moment of actual image capture. |
Camera+Parameters | Camera service settings. |
Camera+Size | Image size (width and height dimensions). |
Camera+ZoomChangeEventArgs | Provides data for the Android.Hardware.Camera.ZoomChange event. |
CameraError | Enumerates values returned by the Android.Hardware.CameraError.ServerDied, and Android.Hardware.CameraError.Unknown members and taken as a parameter of the Android.Hardware.Camera.IErrorCallback.OnError member. |
CameraFacing | Enumerates values returned by several types. |
ConsumerIrManager | Class that operates consumer infrared on the device. |
ConsumerIrManager+CarrierFrequencyRange | Documentation for this section has not yet been entered. |
FocusDistance | Enumerates values returned by several types. |
GeomagneticField | Estimates magnetic field at a given point on Earth, and in particular, to compute the magnetic declination from true north. |
ISensorEventListener | Used for receiving notifications from the SensorManager when sensor values have changed. |
ISensorEventListener2 | Used for receiving a notification when a flush() has been successfully completed. |
ISensorListener | Used for receiving notifications from the SensorManager when sensor values have changed. |
Preview | Enumerates values returned by several types. |
ReportingMode | Enumerates values returned by several types. |
Sensor | Class representing a sensor. |
SensorChangedEventArgs | Documentation for this section has not yet been entered. |
SensorDelay | Enumerates values returned by several methods of Android.Hardware.SensorDelay and taken as a parameter of several types. |
SensorEvent | This class represents a Android.Hardware.Sensor event and holds informations such as the sensor's type, the time-stamp, accuracy and of course the sensor's Android.Hardware.SensorEvent.Values. |
SensorListenerAccuracyChangedEventArgs | Documentation for this section has not yet been entered. |
SensorListenerSensorChangedEventArgs | Documentation for this section has not yet been entered. |
SensorManager |
java Example public class SensorActivity extends Activity, implements SensorEventListener { private final SensorManager mSensorManager; private final Sensor mAccelerometer; public SensorActivity() { mSensorManager = (SensorManager)getSystemService(SENSOR_SERVICE); mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); } protected void onResume() { super.onResume(); mSensorManager.registerListener(this, mAccelerometer, SensorManager.SENSOR_DELAY_NORMAL); } protected void onPause() { super.onPause(); mSensorManager.unregisterListener(this); } public void onAccuracyChanged(Sensor sensor, int accuracy) { } public void onSensorChanged(SensorEvent event) { } } |
SensorStatus | Enumerates values returned by several types and taken as a parameter of several types. |
SensorType | Enumerates values returned by several types and taken as a parameter of several types. |
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. |