Package com.kernelcrew.moodapp.data
Interface LocationHandler.OnLocationObtainedListener
- Enclosing class:
- LocationHandler
public static interface LocationHandler.OnLocationObtainedListener
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onLocationFailed
(String error) 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 latitudelongitude
- the retrieved longitude
-
onLocationFailed
Called when obtaining location fails, either due to missing permissions, disabled services, or runtime errors.- Parameters:
error
- human-readable error message
-