SwiftprotocolPreviewShellKit
CanvasContentProvider
protocol PreviewShellKit.CanvasContentProvider
Members 7
- func
method descriptor for static create(for: PreviewsMessagingOS.ContentCategory, in: PreviewShellKit.PreviewShellScene, using: PreviewShellKit.PreviewAgentConnector) async throws -> A - func
method descriptor for static encode(hostedOutput: A.HostedOutput) -> PreviewsFoundationOS.PropertyList - func
static PreviewShellKit.CanvasContentProvider< where A.HostedOutput: PreviewsFoundationOS.PropertyListRepresentable>.encode(hostedOutput: A.HostedOutput) -> PreviewsFoundationOS.PropertyList - func
static PreviewShellKit.CanvasContentProvider< where A.HostedOutput == ()>.encode(hostedOutput: ()) -> PreviewsFoundationOS.PropertyList - associatedtype
associatedtype ControlStates - associatedtype
associatedtype HostedOutput - func
method 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>>
Header
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 == () }