CameraRecordingState

@objc(GSCameraRecordingState)
public protocol CameraRecordingState

Recording progress event.

  • Current camera recording function state.

    Declaration

    Swift

    var functionState: CameraRecordingFunctionState { get }
  • Recording start time, when functionState is started.

    Declaration

    Swift

    var startTime: Date? { get }
  • Media id, when latestEvent is stopped or one of the error state.

    Declaration

    Swift

    var mediaId: String? { get }
  • Gets current recording duration.

    Declaration

    Swift

    func getDuration() -> TimeInterval

    Return Value

    current recording duration or 0 when recording is not started