Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ricknout committed May 12, 2023
1 parent 3247dd4 commit 6a12667
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,18 @@ val (x, y, z) = sensorValue.value

The following sensor types are available:

| Type | Availability | Sensor | Sensor value |
|----------------|----------------------------------|--------------------------|-------------------------------------------|
| Accelerometer | `isAccelerometerSensorAvailable` | `getAccelerometerSensor` | `rememberAccelerometerSensorValueAsState` |
| Gyroscope | `isGyroscopeSensorAvailable` | `getGyroscopeSensor` | `rememberGyroscopeSensorValueAsState` |
| Light | `isLightSensorAvailable` | `getLightSensor` | `rememberLightSensorValueAsState` |
| Magnetic field | `isMagneticFieldSensorAvailable` | `getMagneticFieldSensor` | `rememberMagneticFieldSensorValueAsState` |
| Pressure | `isPressureSensorAvailable` | `getPressureSensor` | `rememberPressureSensorValueAsState` |
| Proximity | `isProximitySensorAvailable` | `getProximitySensor` | `rememberProximitySensorValueAsState` |
| Type | Availability | Sensor | Sensor value |
|---------------------|---------------------------------------|-------------------------------|------------------------------------------------|
| Accelerometer | `isAccelerometerSensorAvailable` | `getAccelerometerSensor` | `rememberAccelerometerSensorValueAsState` |
| Ambient Temperature | `isAmbientTemperatureSensorAvailable` | `getAmbientTemperatureSensor` | `rememberAmbientTemperatureSensorValueAsState` |
| Gravity | `isGravitySensorAvailable` | `getGravitySensor` | `rememberGravitySensorValueAsState` |
| Gyroscope | `isGyroscopeSensorAvailable` | `getGyroscopeSensor` | `rememberGyroscopeSensorValueAsState` |
| Light | `isLightSensorAvailable` | `getLightSensor` | `rememberLightSensorValueAsState` |
| Linear Acceleration | `isLinearAccelerationSensorAvailable` | `getLinearAccelerationSensor` | `rememberLinearAccelerationSensorValueAsState` |
| Magnetic field | `isMagneticFieldSensorAvailable` | `getMagneticFieldSensor` | `rememberMagneticFieldSensorValueAsState` |
| Pressure | `isPressureSensorAvailable` | `getPressureSensor` | `rememberPressureSensorValueAsState` |
| Proximity | `isProximitySensorAvailable` | `getProximitySensor` | `rememberProximitySensorValueAsState` |
| Relative Humidity | `isRelativeHumiditySensorAvailable` | `getRelativeHumiditySensor` | `rememberRelativeHumiditySensorValueAsState` |

Watch this space, more types to come!

Expand Down

0 comments on commit 6a12667

Please sign in to comment.