VKRecorderViewController

@objc
open class VKRecorderViewController : UIViewController
extension VKRecorderViewController: VKCountdownTimerDelegate
extension VKRecorderViewController: VKImagePickerDelegate
extension VKRecorderViewController: VKHorizontalPickerDataSource
extension VKRecorderViewController: VKHorizontalPickerDelegate
extension VKRecorderViewController: VKRecorderDelegate
extension VKRecorderViewController: VKRecorderDeviceDelegate
extension VKRecorderViewController: VKRecorderFlashAndTorchDelegate
extension VKRecorderViewController: VKRecorderVideoDelegate

Recorder View Controller.

UI Elements

Capture

  • Starts recording a new clip

    Declaration

    Swift

    public func startRecordingSession(_ force: Bool = false)

    Parameters

    force

    Bool Forces the recording session to start

  • Stops the recording a currently running session

    Declaration

    Swift

    public func pauseRecordingSession()
  • Resets capture back to 0 and removes all clips

    Declaration

    Swift

    public func resetCapture()

VKRecorder Delegate

UI

  • Override setupImages to set images for the following buttons:

    nextButton, flashButton, timerButton, backButton, removeButton, photoLibaryButton, flipCameraButton

    Example: self.nextButton.setImage(UIImage(named: "NextButton", in: viewBundle, compatibleWith: nil), for: .normal)

    Declaration

    Swift

    open func setupImages()
  • Hides all buttons and controls

    Declaration

    Swift

    public func hideAllControlsForRecordingMode()
  • Shows all buttons and controls

    Declaration

    Swift

    public func showAllControls()

Lifecycle

VKRecorder Delegate

VKRecorderDeviceDelegate Delegate

Gestures