Skip to content
com.iristick.smartglass.core

Interface SensorEventListener


public interface SensorEventListener
Interface for receiving notifications when sensor values have changed.

Method Summary

Modifier and Type Method and Description
void onSensorChanged(SensorEvent event)
Called when sensor values have changed.

Method Detail

onSensorChanged

void onSensorChanged(@NonNull
                     SensorEvent event)

Called when sensor values have changed.

Note

The application does not own the event object passed as a parameter and therefor cannot hold on to it. The object may be part of an internal pool and may be reused by the framework.

Parameters:
event - The event.