Recording Data
The GIZO SDK can automatically detect trips and start recording them if autoStart
has been enabled in the GIZO SDK options described in the Intiallization section. However, if you intend to allow the user to manually record a trip, the method below can be used to achieve this:
import de.artificient.gizo.sdk.Gizo
import de.artificient.gizo.sdk.GizoAnalysis
import de.artificient.gizo.sdk.config.GizoNoCameraSetting
import de.artificient.gizo.sdk.setting.GizoStopRecordingSetting
private val gizoAnalysis: GizoAnalysis = Gizo.app.gizoAnalysis
val setting = GizoStopRecordingSetting.Builder()
.stopRecordingOnLowBatteryLevel(10)
.build()
val noCameraSetting = GizoNoCameraSetting(stopRecordingSetting = setting)
gizoAnalysis.start(noCameraSetting)
Setting Methods
stopRecordingOnLowBatteryLevel: the input to this method is an integer indicating the battery level (in percentage) below which the recording of the trip must be terminated. For more information, see the Power Saving Process Overview page.
GIZO SDK can automatically determine the end of a trip and terminate the recording if autoStop
has been enabled in the GIZO SDK options described in the Intiallization section. However, if you want to allow the user stop a trip manually or alternatively programmatically under certain conditions, the following method can be used:
GizoSdk.stopRecording();
NOTE: autoStart
and autoStop
function independently. Therefore, even recordings that are initiated manually can be stopped automatically if the autoStop
is enabled.
Last updated