SwiftstructAppIntents

struct AppIntents.IntentFile

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 22

  1. varstatic var defaultResolverSpecification: some AppIntents.ResolverSpecification { get }
  2. varstatic var typeDisplayRepresentation: AppIntents.TypeDisplayRepresentation { get }
  3. varstatic var valueType: LNValueType { get }
  4. fieldlet storage: INFile+0x0
  5. funcdata(contentType: UniformTypeIdentifiers.UTType) async throws -> Foundation.Data
  6. funcfile(contentType: UniformTypeIdentifiers.UTType, destinationDirectory: Foundation.URL?) async throws -> (fileURL: Foundation.URL, openedInPlace: Bool)
  7. funcwithFile<A>(contentType: UniformTypeIdentifiers.UTType, allowOpenInPlace: Bool, fileHandler: (Foundation.URL, Bool) async throws -> A) async throws -> A
  8. initinit(data: Foundation.Data, filename: String, type: UniformTypeIdentifiers.UTType?) -> AppIntents.IntentFile
  9. initinit(fileURL: Foundation.URL, filename: String?, type: UniformTypeIdentifiers.UTType?) -> AppIntents.IntentFile
  10. typealiastypealias EncodableType = Swift.String
  11. typealiastypealias Specification = AppIntents.ResolverSpecificationBuilder<AppIntents.IntentFile>.Specification<AppIntents.IntentFile, Pack{AppIntents.FileFromEntityIdentifierResolver}>
  12. typealiastypealias UnwrappedType = AppIntents.IntentFile
  13. typealiastypealias ValueType = AppIntents.IntentFile
  14. varvar _itemProvider: NSItemProvider { get }
  15. varvar availableContentTypes: [UniformTypeIdentifiers.UTType] { get }
  16. varvar data: Foundation.Data { get }
  17. varvar displayRepresentation: AppIntents.DisplayRepresentation { get }
  18. varvar fileURL: Foundation.URL? { get }
  19. varvar filename: String { get }
  20. varvar projectedAsValue: Any { get }
  21. varvar removedOnCompletion: Bool { get set }
  22. varvar type: UniformTypeIdentifiers.UTType? { get }
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
    }
}