LocationListenerCompat

Added in 1.7.0

public interface LocationListenerCompat extends LocationListener


A version of LocationListener suitable for use on all API levels.

Summary

Public methods

default void
onFlushComplete(int requestCode)
default void
default void
default void
default void
onStatusChanged(
    @NonNull String provider,
    int status,
    @Nullable Bundle extras
)

This method is deprecated.

Inherited methods

From android.location.LocationListener
abstract void

Public methods

onFlushComplete

default void onFlushComplete(int requestCode)

onLocationChanged

default void onLocationChanged(@NonNull List<Location> locations)

onProviderDisabled

default void onProviderDisabled(@NonNull String provider)

onProviderEnabled

default void onProviderEnabled(@NonNull String provider)

onStatusChanged

Added in 1.7.0
default void onStatusChanged(
    @NonNull String provider,
    int status,
    @Nullable Bundle extras
)