public interface TPLLocationListener
extends com.google.android.gms.location.LocationListener
LocationListener
to provide some extra and useful callbacks
e.g. onFirstFix(Location)
Modifier and Type | Method and Description |
---|---|
void |
onFirstFix(android.location.Location location)
Callback executes only on first fix of location updates
|
void |
onLastLocationRequest(android.location.Location location)
Callback executes only when
LocationServices.FusedLocationApi#getLastLocation() call been made. |
void |
onLocationChanged(android.location.Location location)
Callback executes for all location updates
|
void onLocationChanged(@NonNull android.location.Location location)
onLocationChanged
in interface com.google.android.gms.location.LocationListener
location
- an instance of Location
void onFirstFix(@NonNull android.location.Location location)
location
- an instance of Location
void onLastLocationRequest(@NonNull android.location.Location location)
LocationServices.FusedLocationApi#getLastLocation()
call been made.location
- an instance of Location