LocationSource.OnLocationChangedListener

  • The LocationSource.OnLocationChangedListener interface handles location updates for the user.

  • It includes a single method, onLocationChanged(), which is triggered when a new location is identified.

  • This method receives a Location object as a parameter, providing the updated location information.

public static interface LocationSource.OnLocationChangedListener

Handles a location update.

Public Method Summary

abstract void
onLocationChanged(Location location)
Called when a new user location is known.

Public Methods

public abstract void onLocationChanged (Location location)

Called when a new user location is known.

Parameters
location new location. Must not be null.