setPreset

abstract fun setPreset(cameraId: String, preset: Int): Boolean

Sets the current position for the given camera as the given preset. Presets are set per camera. Each camera can have presets from 0-MAX-1, where MAX for that camera is getNumberOfPresets To check whether a preset is set for a given camera, use isPresetSaved

Return

true if successful

Parameters

cameraId

Camera id

preset

The preset index. This should be in the range [0 - getNumberOfPresets -1 ]

Throws

for invalid range or if camera doesn't support preset.