yayaa / LocationManager

Simplify getting user's location for Android
806 stars 187 forks source link

Introduce SimpleLocationListener #54

Closed yayaa closed 7 years ago

yayaa commented 7 years ago

Provides a simple abstract class that you can override only onLocationChanged and onLocationFailed.

new SimpleLocationListener() {
      @Override
      public void onLocationChanged(Location location) {
            // Code when location has changed
      }

      @Override
       public void onLocationFailed(@FailType int type) {
            // Code when location couldn't be retrieved
        }
};