SensorType

@Serializable
enum SensorType : Enum<Emulation.SensorType>

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

Entries

Link copied to clipboard
@SerialName(value = "absolute-orientation")
ABSOLUTE_ORIENTATION
Link copied to clipboard
@SerialName(value = "accelerometer")
ACCELEROMETER
Link copied to clipboard
@SerialName(value = "ambient-light")
AMBIENT_LIGHT
Link copied to clipboard
@SerialName(value = "gravity")
GRAVITY
Link copied to clipboard
@SerialName(value = "gyroscope")
GYROSCOPE
Link copied to clipboard
@SerialName(value = "linear-acceleration")
LINEAR_ACCELERATION
Link copied to clipboard
@SerialName(value = "magnetometer")
MAGNETOMETER
Link copied to clipboard
@SerialName(value = "relative-orientation")
RELATIVE_ORIENTATION

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.