Hunting / Embargo Mode
Pre-requisite: The user has to be signed in to perform the following operations.
Embargo — hunting mode in the app — keeps the camera quiet without switching it off. While it is in effect the camera keeps detecting and recording as normal, but the backend suppresses the notifications for those events. Nothing is lost: the events are in the feed the whole time and the notifications simply do not go out. Suppression ends when the scheduled window closes or hunting mode is switched off.
Two controls drive it: the mode switch, and an optional daily window between startTime and endTime that limits the suppression to those hours. DeviceModel.embargo.mode reports the current mode.
Update Hunting Mode
To switch hunting mode on or off, The following method can be used:
spaceId(required): The space ID of the device.deviceId(required): The device ID.request(required):EnableSettingsRequest(enabled:).
Factory.deviceService.updateDeviceHuntingModeSettings(
spaceId: String,
deviceId: String,
request: EnableSettingsRequest
) -> IVPublisher<Void>
Update the Embargo Schedule
To set the daily window in which the mode applies, The following method can be used. Times are EmbargoSchedulingTime(minute:hour:) — note the label order.
spaceId(required): The space ID of the device.deviceId(required): The device ID.request(required):EmbargoScheduleSettingsRequest(isActive:startTime:endTime:).
Factory.deviceService.updateDeviceEmbargoScheduleSetting(
spaceId: String,
deviceId: String,
request: EmbargoScheduleSettingsRequest
) -> IVPublisher<EmbargoSettings>
The returned EmbargoSettings echoes the stored isActive, startTime and endTime.