Package com.iizix.geo
Interface ILocationListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback interface used in the location service
ILocationService
and for GeoProps
.- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionvoid
onLocationChanged
(IClientSessionGyro clientGyro, DeviceLocation deviceLocation) Called when the device location has been received or changed.
Method Details
onLocationChanged
Called when the device location has been received or changed.The
clientGyro
parameter is always set when the location has been updated when the program is running in the foreground and that the client is a browser or the program does not support background location updates.- Parameters:
clientGyro
- The client session's gyro when possible to find, null otherwise.deviceLocation
- The device location.