UnifiedNlp/client/src/main/aidl/org/microg/nlp/service/UnifiedLocationService.aidl
2020-06-05 20:51:21 +02:00

32 lines
1.2 KiB
Plaintext

/*
* SPDX-FileCopyrightText: 2019, microG Project Team
* SPDX-License-Identifier: Apache-2.0
*/
package org.microg.nlp.service;
import android.location.Location;
import org.microg.nlp.service.AddressCallback;
import org.microg.nlp.service.LocationCallback;
interface UnifiedLocationService {
void registerLocationCallback(LocationCallback callback, in Bundle options);
void setUpdateInterval(long interval, in Bundle options);
void requestSingleUpdate(in Bundle options);
void getFromLocationWithOptions(double latitude, double longitude, int maxResults,
String locale, in Bundle options, AddressCallback callback);
void getFromLocationNameWithOptions(String locationName, int maxResults,
double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude,
double upperRightLongitude, String locale, in Bundle options, AddressCallback callback);
void reloadPreferences();
String[] getLocationBackends();
void setLocationBackends(in String[] backends);
String[] getGeocoderBackends();
void setGeocoderBackends(in String[] backends);
Location getLastLocation();
Location getLastLocationForBackend(String packageName, String className, String signatureDigest);
}