SwiftstructAppIntents

struct AppIntents.IntentMediaItem

Structure

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

Members 16

  1. varstatic var defaultResolverSpecification: AppIntents.EmptyResolverSpecification<AppIntents.IntentMediaItem> { get }
  2. varstatic var typeDisplayRepresentation: AppIntents.TypeDisplayRepresentation { get }
  3. varstatic var valueType: LNValueType { get }
  4. fieldlet artist: String?
  5. fieldlet identifier: String?+0x0
  6. fieldlet image: Foundation.Data?
  7. fieldlet title: String?+0x10
  8. fieldlet type: AppIntents.IntentMediaItem.ItemType+0x20
  9. fieldlet url: Foundation.URL?
  10. initinit(identifier: String?, title: String?, type: AppIntents.IntentMediaItem.ItemType, image: Foundation.Data?, artist: String?, url: Foundation.URL?) -> AppIntents.IntentMediaItem
  11. typealiastypealias EncodableType = AppIntents.IntentMediaItem.MediaItemNLGParams
  12. typealiastypealias Specification = AppIntents.EmptyResolverSpecification<AppIntents.IntentMediaItem>
  13. typealiastypealias UnwrappedType = AppIntents.IntentMediaItem
  14. typealiastypealias ValueType = AppIntents.IntentMediaItem
  15. varvar displayRepresentation: AppIntents.DisplayRepresentation { get }
  16. varvar projectedAsValue: Any { get }
struct IntentMediaItem {
    enum ItemType {
        case unknown
        case song
        case album
        case artist
        case genre
        case playlist
        case podcastShow
        case podcastEpisode
        case podcastPlaylist
        case musicStation
        case audioBook
        case movie
        case tvShow
        case tvShowEpisode
        case musicVideo
        case podcastStation
        case radioStation
        case station
        case music
        case algorithmicRadioStation
        case news
    }
    struct MediaItemNLGParams {
        enum CodingKeys {
            case identifier
            case title
            case type
            case artist
            case url
        }
        let identifier: Swift.String?
        let title: Swift.String?
        let type: Swift.String?
        let artist: Swift.String?
        let url: Foundation.URL.URLNLGParams?
    }
    let identifier: Swift.String?
    let title: Swift.String?
    let type: AppIntents.IntentMediaItem.ItemType
    let image: Foundation.Data?
    let artist: Swift.String?
    let url: Foundation.URL?

    init(identifier: Swift.String?, title: Swift.String?, type: AppIntents.IntentMediaItem.ItemType, image: Foundation.Data?, artist: Swift.String?, url: Foundation.URL?)

    var displayRepresentation: AppIntents.DisplayRepresentation {
        get
    }
    var projectedAsValue: Any {
        get
    }

    static var defaultResolverSpecification: AppIntents.EmptyResolverSpecification<AppIntents.IntentMediaItem> {
        get
    }
    static var typeDisplayRepresentation: AppIntents.TypeDisplayRepresentation {
        get
    }
    static var valueType: __C.LNValueType {
        get
    }
}