VKRecorderViewControllerDataSource

public protocol VKRecorderViewControllerDataSource
  • shouldShowRecordButton() Default implementation

    Show / Hide Record button Return false if you want to implement your own record button

    Default Implementation

    Declaration

    Swift

    func shouldShowRecordButton() -> Bool
  • shouldShowTimeSelector() Default implementation

    Show time selector (Bottom Picker View)

    Default Implementation

    Declaration

    Swift

    func shouldShowTimeSelector() -> Bool
  • shouldEndSessionOnDisappear() Default implementation

    Should end recording session on disappear? VKRecorderViewController ends the recording session after viewDidDisappear is called. This causes all clips to be resetted. Sometimes you might want to keep your clips in memory, e.g. if you move on to an editor after recording and have the ability to go back to the recorder and add more clips. Since VKRecorder is a singleton, make sure to end your session after you don’t need it anymore using VKRecorder.shared.endSession().

    Default Implementation

    Declaration

    Swift

    func shouldEndSessionOnDisappear() -> Bool
  • shouldShowFlashButton() Default implementation

    Show flash button Activates / Deactivates Flash Light

    Default Implementation

    Declaration

    Swift

    func shouldShowFlashButton() -> Bool
  • shouldShowTimerButton() Default implementation

    Show / Hide Timer button Available timers are 3 and 10 seconds.

    Default Implementation

    Declaration

    Swift

    func shouldShowTimerButton() -> Bool
  • shouldShowPhotoLibraryButton() Default implementation

    Show photo picker to pick video

    Default Implementation

    Declaration

    Swift

    func shouldShowPhotoLibraryButton() -> Bool
  • shouldShowFlipCameraButton() Default implementation

    Show button to flip camera

    Default Implementation

    Declaration

    Swift

    func shouldShowFlipCameraButton() -> Bool
  • shouldMergeClipsOnNextButtonTap() Default implementation

    Automatically merge recorded clips after tapping “next” button

    Default Implementation

    Declaration

    Swift

    func shouldMergeClipsOnNextButtonTap() -> Bool
  • shouldEnableUploadWhileRecording() Default implementation

    If set to true. Starts uploading the video to our backend while recording, Default is false.

    Default Implementation

    Declaration

    Swift

    func shouldEnableUploadWhileRecording() -> Bool
  • exitMenuStartOverString() Default implementation

    String describing the “Start Over” element on the exit screen confirmation

    Default Implementation

    Declaration

    Swift

    func exitMenuStartOverString() -> String
  • exitMenuCancelString() Default implementation

    String describing the “Cancel” element on the exit screen confirmation

    Default Implementation

    Declaration

    Swift

    func exitMenuCancelString() -> String
  • exitMenuExitString() Default implementation

    String describing the “Exit” element on the exit screen confirmation

    Default Implementation

    Declaration

    Swift

    func exitMenuExitString() -> String
  • pickerViewItems() Default implementation

    Items for the time picker view. Default is 15 and 60 seconds.

    Default Implementation

    Declaration

    Swift

    func pickerViewItems() -> [VKRecordingLength]