- listener
- The listener on which the TriggerEventListener.OnTrigger(TriggerEvent) will be delivered.
- sensor
- The sensor to be enabled.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.IllegalArgumentException when sensor is null or not a trigger sensor.
Requests receiving trigger events for a trigger sensor.
When the sensor detects a trigger event condition, such as significant motion in the case of the Sensor.TYPE_SIGNIFICANT_MOTION, the provided trigger listener will be invoked once and then its request to receive trigger events will be canceled. To continue receiving trigger events, the application must request to receive trigger events again.