Freigeben über


SensorManager.GetDynamicSensorList(SensorType) Method

Definition

Use this method to get a list of available dynamic sensors of a certain type.

[Android.Runtime.Register("getDynamicSensorList", "(I)Ljava/util/List;", "GetGetDynamicSensorList_IHandler", ApiSince=24)]
public virtual System.Collections.Generic.IList<Android.Hardware.Sensor>? GetDynamicSensorList (Android.Hardware.SensorType type);
[<Android.Runtime.Register("getDynamicSensorList", "(I)Ljava/util/List;", "GetGetDynamicSensorList_IHandler", ApiSince=24)>]
abstract member GetDynamicSensorList : Android.Hardware.SensorType -> System.Collections.Generic.IList<Android.Hardware.Sensor>
override this.GetDynamicSensorList : Android.Hardware.SensorType -> System.Collections.Generic.IList<Android.Hardware.Sensor>

Parameters

type
SensorType

of sensors requested

Returns

a list of dynamic sensors matching the requested type.

Attributes

Remarks

Use this method to get a list of available dynamic sensors of a certain type. Make multiple calls to get sensors of different types or use android.hardware.Sensor#TYPE_ALL Sensor.TYPE_ALL to get all dynamic sensors.

<p class="note"> NOTE: Both wake-up and non wake-up sensors matching the given type are returned. Check Sensor#isWakeUpSensor() to know the wake-up properties of the returned Sensor. </p>

Java documentation for android.hardware.SensorManager.getDynamicSensorList(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to