SwiftprotocolPreviewShellKit

protocol PreviewShellKit.CanvasContentProvider

Members 7

  1. funcmethod descriptor for static create(for: PreviewsMessagingOS.ContentCategory, in: PreviewShellKit.PreviewShellScene, using: PreviewShellKit.PreviewAgentConnector) async throws -> A
  2. funcmethod descriptor for static encode(hostedOutput: A.HostedOutput) -> PreviewsFoundationOS.PropertyList
  3. funcstatic PreviewShellKit.CanvasContentProvider< where A.HostedOutput: PreviewsFoundationOS.PropertyListRepresentable>.encode(hostedOutput: A.HostedOutput) -> PreviewsFoundationOS.PropertyList
  4. funcstatic PreviewShellKit.CanvasContentProvider< where A.HostedOutput == ()>.encode(hostedOutput: ()) -> PreviewsFoundationOS.PropertyList
  5. associatedtypeassociatedtype ControlStates
  6. associatedtypeassociatedtype HostedOutput
  7. funcmethod descriptor for performUpdate(updatePayload: A.UpdatePayload, controlStates: A.ControlStates?, agentContext: PreviewsOSSupportUI.AgentUpdate.Context, sceneContext: PreviewsOSSupportUI.SceneUpdateContext, delegate: PreviewShellKit.CanvasUpdateDelegate) throws -> PreviewsFoundationOS.Future<PreviewShellKit.CanvasUpdateResult<A.HostedOutput, A.StaticOutput, A.ControlStates>>
protocol CanvasContentProvider: PreviewShellKit.CanvasContentHost, PreviewShellKit.ContentProvider {
    associatedtype HostedOutput
    associatedtype ControlStates

    func performUpdate(updatePayload: Self.UpdatePayload, controlStates: Self.ControlStates?, agentContext: PreviewsOSSupportUI.AgentUpdate.Context, sceneContext: PreviewsOSSupportUI.SceneUpdateContext, delegate: any PreviewShellKit.CanvasUpdateDelegate) throws -> PreviewsFoundationOS.Future<PreviewShellKit.CanvasUpdateResult<Self.HostedOutput, Self.StaticOutput, Self.ControlStates>>

    static func encode(hostedOutput: Self.HostedOutput) -> PreviewsFoundationOS.PropertyList
    static func create(for: PreviewsMessagingOS.ContentCategory, in: any PreviewShellKit.PreviewShellScene, using: PreviewShellKit.PreviewAgentConnector) async throws -> Self
}
extension PreviewShellKit.CanvasContentProvider {
    static func encode(hostedOutput: Self.HostedOutput) -> PreviewsFoundationOS.PropertyList where Self.HostedOutput: PreviewsFoundationOS.PropertyListRepresentable
    static func encode(hostedOutput: ()) -> PreviewsFoundationOS.PropertyList where Self.HostedOutput == ()
}