GSCameraExposureSettings

@objc
public protocol GSCameraExposureSettings

Settings to configure camera exposure mode and parameters.

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 }
  • Exposure mode.

    Declaration

    Swift

    var mode: CameraExposureMode { get set }
  • Shutter speed when exposure mode is manualShutterSpeed or manual mode.

    Declaration

    Swift

    var manualShutterSpeed: CameraShutterSpeed { get set }
  • Iso sensitivity when exposure mode is manualIsoSensitivity or manual mode.

    Declaration

    Swift

    var manualIsoSensitivity: CameraIso { get set }
  • Maximum Iso sensitivity when exposure mode is automatic.

    Declaration

    Swift

    var maximumIsoSensitivity: CameraIso { get set }
  • Checks if a mode is supported.

    Declaration

    Swift

    func isModeSupported(_ mode: CameraExposureMode) -> Bool

    Parameters

    mode

    mode to check

    Return Value

    true if the mode is supported

  • Checks if a manual shutter speed value is supported.

    Declaration

    Swift

    func isManualShutterSpeedSupported(_ shutterSpeed: CameraShutterSpeed) -> Bool

    Parameters

    shutterSpeed

    shutter speed to test

    Return Value

    true if the shutter speed is supported

  • Checks if a manual iso sensitivity value is supported.

    Declaration

    Swift

    func isManualIsoSensitivitySupported(_ iso: CameraIso) -> Bool

    Parameters

    iso

    iso sensitivity to check

    Return Value

    true if the iso sensitivity is supported

  • Checks if a maximum iso sensitivity value is supported.

    Declaration

    Swift

    func isMaximumIsoSensitivitySupported(_ iso: CameraIso) -> Bool

    Parameters

    iso

    maximum iso sensitivity to check

    Return Value

    true if the maximum iso sensitivity is supported

  • Changes exposure mode, manualShutterSpeed, manualIsoSensitivity and maximumIsoSensitivity.

    Declaration

    Swift

    @objc(setMode:manualShutterSpeed:manualIsoSensitivity:maximumIsoSensitivity:)
    func set(mode: CameraExposureMode, manualShutterSpeed: Int, manualIsoSensitivity: Int, maximumIsoSensitivity: Int)

    Parameters

    mode

    requested exposure mode

    manualShutterSpeed

    requested manual shutter speed if mode is manualShutterSpeed or manual, or -1 to keep the current value.

    manualIsoSensitivity

    requested iso sensitivity if exposure mode is manualIsoSensitivity or manual, or -1 to keep the current value

    maximumIsoSensitivity

    requested maximum iso sensitivity when exposure mode is automatic, or -1 to keep the current value