Interface LocationHandler.OnLocationObtainedListener

Enclosing class:
LocationHandler

public static interface LocationHandler.OnLocationObtainedListener
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when obtaining location fails, either due to missing permissions, disabled services, or runtime errors.
    void
    onLocationObtained(double latitude, double longitude)
    Called when the location is successfully obtained.
  • Method Details

    • onLocationObtained

      void onLocationObtained(double latitude, double longitude)
      Called when the location is successfully obtained.
      Parameters:
      latitude - the retrieved latitude
      longitude - the retrieved longitude
    • onLocationFailed

      void onLocationFailed(String error)
      Called when obtaining location fails, either due to missing permissions, disabled services, or runtime errors.
      Parameters:
      error - human-readable error message