diff options
author | Guillaume Jacquart <guillaume.jacquart@hoodbrains.com> | 2022-08-18 07:06:38 +0000 |
---|---|---|
committer | Guillaume Jacquart <guillaume.jacquart@hoodbrains.com> | 2022-08-18 07:06:38 +0000 |
commit | 8884e0423a4e50406b221ee07321a8560bb7420c (patch) | |
tree | 2ade73284374e0e7bc65bbd32074e36d96ccb8c8 /privacymodule-api/src/main/java/foundation/e/privacymodules/location | |
parent | 1b9c519e073a5e64eeeafd747ddac75fde5f88df (diff) | |
parent | d7a1777a43a7c2f8329eee318945d8f7705d2b68 (diff) | |
download | advanced-privacy-8884e0423a4e50406b221ee07321a8560bb7420c.tar.gz |
Merge branch '2-change_api_artifactid' into 'main'
2-Change artifactId for api module, to help cohabitation with permissions module.
See merge request e/os/advanced-privacy!81
Diffstat (limited to 'privacymodule-api/src/main/java/foundation/e/privacymodules/location')
-rw-r--r-- | privacymodule-api/src/main/java/foundation/e/privacymodules/location/IFakeLocationModule.kt | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/privacymodule-api/src/main/java/foundation/e/privacymodules/location/IFakeLocationModule.kt b/privacymodule-api/src/main/java/foundation/e/privacymodules/location/IFakeLocationModule.kt new file mode 100644 index 0000000..ecad2a4 --- /dev/null +++ b/privacymodule-api/src/main/java/foundation/e/privacymodules/location/IFakeLocationModule.kt @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2022 E FOUNDATION + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +package foundation.e.privacymodules.location + +/** + * Manage a fake location on the device. + */ +interface IFakeLocationModule { + /** + * Start to fake the location module. Call [setFakeLocation] after to set the fake + * position. + */ + fun startFakeLocation() + + /** + * Set or update the faked position. + * @param latitude the latitude of the fake position in degrees. + * @param longitude the longitude of the fake position in degrees. + */ + fun setFakeLocation(latitude: Double, longitude: Double) + + /** + * Stop the fake location module, giving back hand to the true location modules. + */ + fun stopFakeLocation() +} |