Screen
@ScreenActor
public final class Screen : ScreenObjectContainerConvertible
An object that manages offscreen rendering a foundation.
-
The default screen size.
Declaration
Swift
@ScreenActor public static let size: CGSize -
The total of child counts.
Declaration
Swift
@ScreenActor public var childCounts: Int { get } -
Specifies the delegate object.
Declaration
Swift
@ScreenActor public weak var delegate: (any ScreenDelegate)? -
Specifies the video size to use when output a video.
Declaration
Swift
@ScreenActor public var size: CGSize { get set } -
Specifies the background color.
Declaration
Swift
@ScreenActor public var backgroundColor: CGColor { get set } -
Specifies the background color.
-
Creates a screen object.
Declaration
Swift
@ScreenActor public init() -
Adds the specified screen object as a child of the current screen object container.
Declaration
Swift
@ScreenActor public func addChild(_ child: ScreenObject?) throws -
Removes the specified screen object as a child of the current screen object container.
Declaration
Swift
@ScreenActor public func removeChild(_ child: ScreenObject?) -
Registers a video effect.
Declaration
Swift
@ScreenActor public func registerVideoEffect(_ effect: some VideoEffect) -> Bool -
Unregisters a video effect.
Declaration
Swift
@ScreenActor public func unregisterVideoEffect(_ effect: some VideoEffect) -> Bool