-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LEIP-130] Call Digural API on image capture (#63)
* Refactor background process to take in some kind of hook class for custom behaviour. * Integrate updated camera servic into Cyface app and include code to trigger digural * Add trigger call to DiGuRaL API * Add UI Field to set DiGuRaL server address * [LEIP-137] Fix digural url field in settings fragment * Dont inject digural address statically * Upgrade camera service to 4.2.0 * Cleanup and documentation * Fix build --------- Co-authored-by: Klemens Muthmann <[email protected]>
- Loading branch information
1 parent
1e9a8a4
commit 04ef163
Showing
32 changed files
with
470 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule camera_service
updated
from d02b95 to f4baf1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
ui/cyface/src/main/kotlin/de/cyface/app/button/UnInterestedListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright 2023 Cyface GmbH | ||
* | ||
* This file is part of the Cyface App for Android. | ||
* | ||
* The Cyface App for Android 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. | ||
* | ||
* The Cyface App for Android 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 the Cyface App for Android. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package de.cyface.app.button | ||
|
||
import android.content.Context | ||
import android.location.Location | ||
import de.cyface.camera_service.background.ParcelableCapturingProcessListener | ||
import kotlinx.parcelize.Parcelize | ||
|
||
@Parcelize | ||
class UnInterestedListener : ParcelableCapturingProcessListener { | ||
|
||
override fun contextBasedInitialization(context: Context) {} | ||
override fun onCameraAccessLost() {} | ||
override fun onPictureCaptured() {} | ||
override fun onRecordingStarted() {} | ||
override fun onRecordingStopped() {} | ||
override fun onCameraError(reason: String) {} | ||
override fun onAboutToCapture(measurementId: Long, location: Location?) {} | ||
override fun shallStop() {} | ||
} |
Oops, something went wrong.