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 GizoSDK
var noCameraSetting = GizoNoCameraSetting()
noCameraSetting.stopRecordingSetting = GizoStopRecordingSetting(stopRecordingOnLowBatteryLevel: 10)
try Gizo.shared.startRecording(noCameraSetting)

Setting Parameters

stopRecordingOnLowBatteryLevel: 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:

Gizo.shared.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