mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
18 lines
456 B
Java
18 lines
456 B
Java
package org.thoughtcrime.securesms.geolocation;
|
|
|
|
import android.content.Context;
|
|
import android.location.Location;
|
|
import androidx.annotation.NonNull;
|
|
|
|
/** Abstraction over platform LocationManager and GMS FusedLocationProviderClient. */
|
|
public interface LocationSource {
|
|
|
|
void startUpdates(@NonNull Context context, @NonNull Callback callback);
|
|
|
|
void stopUpdates();
|
|
|
|
interface Callback {
|
|
void onLocationUpdate(@NonNull Location location);
|
|
}
|
|
}
|