add m.location support

Needs cross-platform testing. Currently only tested on Android.
This commit is contained in:
Henry Hiles 2026-11-02 15:02:49 -05:00
commit 3a8d977f11
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -0,0 +1,11 @@
enum LocationException(final String message) implements Exception {
servicesOff("Location services are turned off."),
denied("Nexus doesn't have permission to see your location."),
timedOut("Couldn't get your location in time."),
failed(
"Couldn't get your location. Check that location services are on, and that Nexus is allowed to use them.",
);
@override
String toString() => message;
}