mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-30 11:41:10 +00:00
* ci(swift): enforce shared kit dead-code coverage * chore(i18n): sync native source inventory * ci(swift): install pinned iOS scan tools
34 lines
849 B
Swift
34 lines
849 B
Swift
import Foundation
|
|
|
|
public enum OpenClawScreenCommand: String, Codable, Sendable {
|
|
case snapshot = "screen.snapshot"
|
|
case record = "screen.record"
|
|
}
|
|
|
|
public enum OpenClawScreenSnapshotFormat: String, Codable, Sendable {
|
|
case jpeg
|
|
case png
|
|
}
|
|
|
|
public struct OpenClawScreenRecordParams: Codable, Sendable, Equatable {
|
|
public var screenIndex: Int?
|
|
public var durationMs: Int?
|
|
public var fps: Double?
|
|
public var format: String?
|
|
public var includeAudio: Bool?
|
|
|
|
public init(
|
|
screenIndex: Int? = nil,
|
|
durationMs: Int? = nil,
|
|
fps: Double? = nil,
|
|
format: String? = nil,
|
|
includeAudio: Bool? = nil)
|
|
{
|
|
self.screenIndex = screenIndex
|
|
self.durationMs = durationMs
|
|
self.fps = fps
|
|
self.format = format
|
|
self.includeAudio = includeAudio
|
|
}
|
|
}
|