public interface LocationListener

A listener for receiving notifications from the FusedLocationProviderClient.

Public Method Summary

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

Public Methods

public abstract void onLocationChanged (Location location)

Called when a new Location is available. The location will generally be as fresh as possible given the parameters of the associated LocationRequest and the state of the device, but this does not imply that it will always represent the current location. Clients may wish to reference the time associated with the location.

Parameters
location The latest location.