GSCameraRecordingSettings
@objc
public protocol GSCameraRecordingSettings
Settings to configure recording mode and options
Note
This protocol is for Objective-C compatibility only.-
Tells if a setting value has been changed and is waiting for change confirmation.
Declaration
Swift
var updating: Bool { get }
-
Recording mode.
Declaration
Swift
var mode: CameraRecordingMode { get set }
-
Recording resolution.
Declaration
Swift
var resolution: CameraRecordingResolution { get set }
-
Recording framerate.
Declaration
Swift
var framerate: CameraRecordingFramerate { get }
-
Hyperlapse values when mode is
hyperlapse
.Declaration
Swift
var hyperlapseValue: CameraHyperlapseValue { get }
-
Whether HDR is available in the current mode, resolution and framerate.
Declaration
Swift
var hdrAvailable: Bool { get }
-
Checks if a recording mode is supported.
Declaration
Swift
func isModeSupported(_ mode: CameraRecordingMode) -> Bool
Parameters
mode
mode to check
Return Value
true
if the mode is supported -
Checks if a resolution is supported in the current mode.
Declaration
Swift
func isResolutionSupported(_ resolution: CameraRecordingResolution) -> Bool
Parameters
resolution
resolution to check
Return Value
true
if the resolution is supported in the current mode -
Checks if a resolution is supported in a specific mode.
Declaration
Swift
func isResolutionSupported(_ resolution: CameraRecordingResolution, forMode mode: CameraRecordingMode) -> Bool
Parameters
mode
mode to check if a resolution is supported
resolution
resolution to check
Return Value
true
if the resolution is supported in the specified mode -
Checks if a framerate is supported in the current mode.
Declaration
Swift
func isFramerateSupported(_ framerate: CameraRecordingFramerate) -> Bool
Parameters
framerate
framerate to check
Return Value
true
if the framerate is supported in the current mode -
Checks if a framerate is supported in a specific mode and resolution.
Declaration
Swift
func isFramerateSupported(_ framerate: CameraRecordingFramerate, forMode mode: CameraRecordingMode, andResolution resolution: CameraRecordingResolution) -> Bool
Parameters
mode
mode to check if a framerate is supported
framerate
framerate to check
resolution
resolution to check
Return Value
true
if the framerate is supported in the specified mode -
Tells whether HDR is available for specific mode, framerate and resolution.
Declaration
Swift
@objc(isHdrAvailableForMode:resolution:framerate:) func hdrAvailable( forMode mode: CameraRecordingMode, resolution: CameraRecordingResolution, framerate: CameraRecordingFramerate) -> Bool
Parameters
mode
the recording mode
resolution
the recording resolution
framerate
the recording framerate
Return Value
true
if hdr is available in the given mode, resolution and framerate -
Checks if a hyperlapse value is supported.
Declaration
Swift
func isHyperlapseValueSupported(_ hyperlapseValue: CameraHyperlapseValue) -> Bool
Parameters
hyperlapseValue
hyperlapse value to check
Return Value
true
if the hyperlapse value is supported -
Changes recording mode, resolution, framerate and hyperlapse values.
Declaration
Swift
@objc(setMode:resolution:framerate:hyperlapseValue:) func gsSet(mode: CameraRecordingMode, resolution: CameraRecordingResolution, framerate: CameraRecordingFramerate, hyperlapseValue: Int)
Parameters
mode
requested recording mode
resolution
requested recording resolution
framerate
requested recording framerate
hyperlapseValue
requested hyperlapse value, -1 to keep the current value