3 @objc(ScriptedPreferences)
4 class ScriptedPreferences: NSObject {
5 @objc dynamic var fps: Int {
7 CapturaSettings.frameRate
10 CapturaSettings.frameRate = newValue
13 @objc dynamic var outputs: String {
15 CapturaSettings.outputFormats.toString()
18 CapturaSettings.outputFormats = OutputFormatSetting(newValue) ?? .gifOnly
22 @objc dynamic var backend: String {
24 CapturaSettings.backend?.absoluteString ?? ""
27 CapturaSettings.backend = URL(string: newValue)
31 @objc dynamic var backend_output: String {
33 CapturaSettings.backendFormat.toString()
36 CapturaSettings.backendFormat = OutputFormatSetting(newValue) ?? .gifOnly
40 @objc dynamic var keep_local_files: Bool {
42 CapturaSettings.shouldKeepLocalFiles
45 CapturaSettings.shouldKeepLocalFiles = newValue