SensorType

@Serializable(with = SensorTypeSerializer::class)
sealed interface SensorType

Used to specify sensor types to emulate. See https://w3c.github.io/sensors/#automation for more information.

Official doc

Inheritors

Types

Link copied to clipboard
Link copied to clipboard
@Serializable(with = SensorTypeSerializer::class)
data object accelerometer : SensorType
Link copied to clipboard
@Serializable(with = SensorTypeSerializer::class)
data object ambientLight : SensorType
Link copied to clipboard
@Serializable(with = SensorTypeSerializer::class)
data object gravity : SensorType
Link copied to clipboard
@Serializable(with = SensorTypeSerializer::class)
data object gyroscope : SensorType
Link copied to clipboard
@Serializable(with = SensorTypeSerializer::class)
data object linearAcceleration : SensorType
Link copied to clipboard
@Serializable(with = SensorTypeSerializer::class)
data object magnetometer : SensorType
Link copied to clipboard
@Serializable(with = SensorTypeSerializer::class)
data class NotDefinedInProtocol(val value: String) : SensorType

This extra enum entry represents values returned by Chrome that were not defined in the protocol (for instance new values that were added later).

Link copied to clipboard