SwiftstructWritingToolsUI
WTIntentContext
struct WritingToolsUI.WTIntentContext
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolAppIntents.AppEntity
- protocolAppIntents.AppValue
- protocolAppIntents.DisplayRepresentable
- protocolAppIntents._IntentValue
- protocolCoreTransferable.Transferable
- protocolSwift.Decodable
- protocolSwift.Encodable
- protocolSwift.Identifiable
Members 15
- var
static var defaultQuery: WritingToolsUI.WTIntentContextQuery { get set } - var
static var transferRepresentation: some CoreTransferable.TransferRepresentation { get } - var
static var typeDisplayRepresentation: AppIntents.TypeDisplayRepresentation { get set } - field
let contextType: WritingToolsUI.WTIntentContext.WritingContextType - field
let conversationContext: WritingToolsUI.WTIntentContext.ConversationContext? - field
let documentContext: WritingToolsUI.WTIntentContext.DocumentContext? - field
var id: Foundation.UUID - init
init(contextType: WritingToolsUI.WTIntentContext.WritingContextType, documentContext: WritingToolsUI.WTIntentContext.DocumentContext, conversationContext: WritingToolsUI.WTIntentContext.ConversationContext?, result: Foundation.AttributedString?) -> WritingToolsUI.WTIntentContext - typealias
typealias DefaultQuery = WritingToolsUI.WTIntentContextQuery - typealias
typealias ID = Foundation.UUID - typealias
typealias Representation = CoreTransferable.CodableRepresentation<WritingToolsUI.WTIntentContext, Foundation.JSONEncoder, Foundation.JSONDecoder> - typealias
typealias Specification = AppIntents.EmptyResolverSpecification<WritingToolsUI.WTIntentContext> - typealias
typealias UnwrappedType = WritingToolsUI.WTIntentContext - typealias
typealias ValueType = WritingToolsUI.WTIntentContext - var
var displayRepresentation: AppIntents.DisplayRepresentation { get }
Header
struct WTIntentContext { enum WritingContextType { enum CodingKeys { case mail case general } enum MailCodingKeys {} enum GeneralCodingKeys {} case mail case general } struct DocumentContext { enum CodingKeys { case documentTextData case selectedRangeLocation case selectedRangeLength } let documentText: __C.NSAttributedString let selectedRange: __C._NSRange init(documentText: __C.NSAttributedString, selectedRange: __C._NSRange) init(documentText: __C.NSAttributedString) var selectedText: __C.NSAttributedString { get } } struct ConversationContext { struct MailMessage { enum CodingKeys { case messageId case inResponseToMessageId case mail } let messageId: Swift.Int let inResponseToMessageId: Swift.Int? let mail: WritingToolsUI.WTIntentContext.ConversationContext.MailDetails init(messageId: Swift.Int, inResponseToMessageId: Swift.Int?, mail: WritingToolsUI.WTIntentContext.ConversationContext.MailDetails) } struct MailDetails { enum CodingKeys { case from case subject case bodyData case to case cc } let from: Swift.String? let subject: Swift.String? let body: __C.NSAttributedString? let to: [Swift.String] let cc: [Swift.String] init(from: Swift.String?, subject: Swift.String?, body: __C.NSAttributedString?, to: [Swift.String], cc: [Swift.String]) } enum CodingKeys { case mailMessages case replyToMessageId } let mailMessages: [WritingToolsUI.WTIntentContext.ConversationContext.MailMessage] let replyToMessageId: Swift.Int? init(mailMessages: [WritingToolsUI.WTIntentContext.ConversationContext.MailMessage], replyToMessageId: Swift.Int?) } enum CodingKeys { case contextType case userPrompt case documentContext case conversationContext case resultData } var id: Foundation.UUID let contextType: WritingToolsUI.WTIntentContext.WritingContextType let documentContext: WritingToolsUI.WTIntentContext.DocumentContext? let conversationContext: WritingToolsUI.WTIntentContext.ConversationContext? init(contextType: WritingToolsUI.WTIntentContext.WritingContextType, documentContext: WritingToolsUI.WTIntentContext.DocumentContext, conversationContext: WritingToolsUI.WTIntentContext.ConversationContext?, result: Foundation.AttributedString?) var displayRepresentation: AppIntents.DisplayRepresentation { get } static var defaultQuery: WritingToolsUI.WTIntentContextQuery { get set } static var transferRepresentation: some CoreTransferable.TransferRepresentation { get } static var typeDisplayRepresentation: AppIntents.TypeDisplayRepresentation { get set } }