public enum SKSensorType extends java.lang.Enum<SKSensorType>
Enum Constant and Description |
---|
ACCELEROMETER
Measures the device acceleration changes in three-dimensional space.
|
AIR_PRESSURE
Atmospheric pressure in hPa (millibar).
|
AMBIENT_TEMPERATURE
Room temperature in degrees Celcius.
|
AUDIO_LEVEL
Maximum level of the audio signal in a buffer.
|
BATTERY
Battery sensor listens to changes in the battery charge state (Charging, Full, Unplugged) as well as in the battery charge level (with 1% precision).
|
BLUETOOTH
Scans for other Bluetooth Classic devices around.
|
EDDYSTONE_PROXIMITY
Eddystone Proximity sensor estimates the proximity of the current device with other Eddystone beacons in range.
|
GRAVITY
Measures the force of gravity in m/s2 that is applied to a device on all three physical axes (x, y, z).
|
GYROSCOPE
Measures the device's rate of rotation around each of the three spatial axes.
|
HUMIDITY
Relative ambient air humidity in percent.
|
IBEACON
iBeacon Proximity sensor estimates the proximity of the current device with other iBeacons in range.
|
LIGHT
Measures the ambient light level (illumination) in lux.
|
LINEAR_ACCELERATION
Measures the acceleration force in m/s2 that is applied to a device on all three physical axes (x, y, and z), excluding the force of gravity.
|
LOCATION
Location sensor determines the current location of the device using a combination of Cellular, Wi-Fi, Bluetooth and GPS sensors.
|
MAGNETOMETER
Measures the ambient geomagnetic field for all three physical axes (x, y, z) in microtesla.
|
MICROPHONE
Microphone sensor can be used to record audio from the environment by converting sound into electrical signal.
|
MOTION_ACTIVITY
Motion Activity sensor uses an embedded motion co-processor that senses the user's activity classified as Stationary, Walking, Running, Automotive or Cycling.
|
ROTATION
Measures the orientation of a device by providing the three elements of the device's rotation vector.
|
SCREEN_STATUS
Senses the status of the screen (On / Off).
|
STEP_COUNTER
Number of steps taken by the user since the last reboot while activated.
|
STEP_DETECTOR
Returns 1.0 each time a step is taken
|
Modifier and Type | Method and Description |
---|---|
static SKSensorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SKSensorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SKSensorType ACCELEROMETER
public static final SKSensorType GRAVITY
public static final SKSensorType LINEAR_ACCELERATION
public static final SKSensorType GYROSCOPE
public static final SKSensorType ROTATION
public static final SKSensorType MAGNETOMETER
public static final SKSensorType AMBIENT_TEMPERATURE
public static final SKSensorType STEP_DETECTOR
public static final SKSensorType STEP_COUNTER
public static final SKSensorType LIGHT
public static final SKSensorType LOCATION
public static final SKSensorType MOTION_ACTIVITY
public static final SKSensorType BATTERY
public static final SKSensorType SCREEN_STATUS
public static final SKSensorType MICROPHONE
public static final SKSensorType AUDIO_LEVEL
public static final SKSensorType BLUETOOTH
public static final SKSensorType EDDYSTONE_PROXIMITY
public static final SKSensorType IBEACON
public static final SKSensorType HUMIDITY
public static final SKSensorType AIR_PRESSURE
public static SKSensorType[] values()
for (SKSensorType c : SKSensorType.values()) System.out.println(c);
public static SKSensorType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null