VKRecorderViewControllerDataSource
public protocol VKRecorderViewControllerDataSource
-
shouldShowRecordButton()
Default implementationShow / Hide Record button Return false if you want to implement your own record button
Default Implementation
Declaration
Swift
func shouldShowRecordButton() -> Bool
-
shouldShowTimeSelector()
Default implementationShow time selector (Bottom Picker View)
Default Implementation
Declaration
Swift
func shouldShowTimeSelector() -> Bool
-
shouldEndSessionOnDisappear()
Default implementationShould 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 implementationShow flash button Activates / Deactivates Flash Light
Default Implementation
Declaration
Swift
func shouldShowFlashButton() -> Bool
-
shouldShowTimerButton()
Default implementationShow / Hide Timer button Available timers are 3 and 10 seconds.
Default Implementation
Declaration
Swift
func shouldShowTimerButton() -> Bool
-
shouldShowPhotoLibraryButton()
Default implementationShow photo picker to pick video
Default Implementation
Declaration
Swift
func shouldShowPhotoLibraryButton() -> Bool
-
shouldShowFlipCameraButton()
Default implementationShow button to flip camera
Default Implementation
Declaration
Swift
func shouldShowFlipCameraButton() -> Bool
-
shouldMergeClipsOnNextButtonTap()
Default implementationAutomatically merge recorded clips after tapping “next” button
Default Implementation
Declaration
Swift
func shouldMergeClipsOnNextButtonTap() -> Bool
-
shouldEnableUploadWhileRecording()
Default implementationIf set to true. Starts uploading the video to our backend while recording, Default is false.
Default Implementation
Declaration
Swift
func shouldEnableUploadWhileRecording() -> Bool
-
exitMenuStartOverString()
Default implementationString describing the “Start Over” element on the exit screen confirmation
Default Implementation
Declaration
Swift
func exitMenuStartOverString() -> String
-
exitMenuCancelString()
Default implementationString describing the “Cancel” element on the exit screen confirmation
Default Implementation
Declaration
Swift
func exitMenuCancelString() -> String
-
exitMenuExitString()
Default implementationString describing the “Exit” element on the exit screen confirmation
Default Implementation
Declaration
Swift
func exitMenuExitString() -> String
-
pickerViewItems()
Default implementationItems for the time picker view. Default is 15 and 60 seconds.
Default Implementation
Declaration
Swift
func pickerViewItems() -> [VKRecordingLength]