public class Proximity
extends java.lang.Object
This class represents the proximity sensor value. It can be used to dispatch the sensor updates to the creative.
| Constructor and Description |
|---|
Proximity(float distance,
int watchID)
Constructs a new instance of sensor object with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getDistance() |
int |
getWatchID() |
public Proximity(float distance,
int watchID)
distance - Proximity sensor distance measured in centimeters.watchID - A watch identifier which defined by a creative command.