SwiftstructAppIntents
struct AppIntents.IntentFile
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolAppIntents.DisplayRepresentable
- protocolAppIntents.ValueEncodable
- protocolAppIntents._IntentValue
- protocolAppIntents._NLGConvertible
- protocolLinkServices.LNValueExpressible
- protocolSwift.Decodable
- protocolSwift.Encodable
- protocolSwift.Equatable
- protocolSwift.Hashable
Members 22
- var
static var defaultResolverSpecification: some AppIntents.ResolverSpecification { get } - var
static var typeDisplayRepresentation: AppIntents.TypeDisplayRepresentation { get } - var
static var valueType: LNValueType { get } - field
let storage: INFile+0x0 - func
data(contentType: UniformTypeIdentifiers.UTType) async throws -> Foundation.Data - func
file(contentType: UniformTypeIdentifiers.UTType, destinationDirectory: Foundation.URL?) async throws -> (fileURL: Foundation.URL, openedInPlace: Bool) - func
withFile<A>(contentType: UniformTypeIdentifiers.UTType, allowOpenInPlace: Bool, fileHandler: (Foundation.URL, Bool) async throws -> A) async throws -> A - init
init(data: Foundation.Data, filename: String, type: UniformTypeIdentifiers.UTType?) -> AppIntents.IntentFile - init
init(fileURL: Foundation.URL, filename: String?, type: UniformTypeIdentifiers.UTType?) -> AppIntents.IntentFile - typealias
typealias EncodableType = Swift.String - typealias
typealias Specification = AppIntents.ResolverSpecificationBuilder<AppIntents.IntentFile>.Specification<AppIntents.IntentFile, Pack{AppIntents.FileFromEntityIdentifierResolver}> - typealias
typealias UnwrappedType = AppIntents.IntentFile - typealias
typealias ValueType = AppIntents.IntentFile - var
var _itemProvider: NSItemProvider { get } - var
var availableContentTypes: [UniformTypeIdentifiers.UTType] { get } - var
var data: Foundation.Data { get } - var
var displayRepresentation: AppIntents.DisplayRepresentation { get } - var
var fileURL: Foundation.URL? { get } - var
var filename: String { get } - var
var projectedAsValue: Any { get } - var
var removedOnCompletion: Bool { get set } - var
var type: UniformTypeIdentifiers.UTType? { get }
Header
struct IntentFile { enum IntentFileError { case failedToLoadData case failedToLoadFile var errorCode: Swift.Int { get } var errorUserInfo: [Swift.String : Any] { get } static var errorDomain: Swift.String { get } } enum _CodingKeys { case _data case _filename case _typeIdentifier case _fileURL case _removedOnCompletion } let storage: __C.INFile init(data: Foundation.Data, filename: Swift.String, type: UniformTypeIdentifiers.UTType?) init(fileURL: Foundation.URL, filename: Swift.String?, type: UniformTypeIdentifiers.UTType?) var _itemProvider: __C.NSItemProvider { get } var availableContentTypes: [UniformTypeIdentifiers.UTType] { get } var data: Foundation.Data { get } var displayRepresentation: AppIntents.DisplayRepresentation { get } var fileURL: Foundation.URL? { get } var filename: Swift.String { get } var projectedAsValue: Any { get } var removedOnCompletion: Swift.Bool { get set } var type: UniformTypeIdentifiers.UTType? { get } func withFile<A>(contentType: UniformTypeIdentifiers.UTType, allowOpenInPlace: Swift.Bool, fileHandler: @escaping (Foundation.URL, Swift.Bool) async throws -> A) async throws -> A func data(contentType: UniformTypeIdentifiers.UTType) async throws -> Foundation.Data func file(contentType: UniformTypeIdentifiers.UTType, destinationDirectory: Foundation.URL?) async throws -> (fileURL: Foundation.URL, openedInPlace: Swift.Bool) static var defaultResolverSpecification: some AppIntents.ResolverSpecification { get } static var typeDisplayRepresentation: AppIntents.TypeDisplayRepresentation { get } static var valueType: __C.LNValueType { get } }