-api-id | -api-type |
---|---|
T:Windows.Devices.Sensors.ActivitySensor |
winrt class |
Represents a sensor that provides the activity and status of a sensor.
Note
This class is not supported in JavaScript
In order to use ActivitySensor, you need to define the activity device capability in your app manifest file.
<Capabilities>
<DeviceCapability Name="activity"/>
</Capabilities>
For an example implementation, see the activity sensor sample.