SwiftstructAppIntents
IntentMediaItem
struct AppIntents.IntentMediaItem
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
- protocolSwift.Equatable
Members 16
- var
static var defaultResolverSpecification: AppIntents.EmptyResolverSpecification<AppIntents.IntentMediaItem> { get } - var
static var typeDisplayRepresentation: AppIntents.TypeDisplayRepresentation { get } - var
static var valueType: LNValueType { get } - field
let artist: String? - field
let identifier: String?+0x0 - field
let image: Foundation.Data? - field
let title: String?+0x10 - field
let type: AppIntents.IntentMediaItem.ItemType+0x20 - field
let url: Foundation.URL? - init
init(identifier: String?, title: String?, type: AppIntents.IntentMediaItem.ItemType, image: Foundation.Data?, artist: String?, url: Foundation.URL?) -> AppIntents.IntentMediaItem - typealias
typealias EncodableType = AppIntents.IntentMediaItem.MediaItemNLGParams - typealias
typealias Specification = AppIntents.EmptyResolverSpecification<AppIntents.IntentMediaItem> - typealias
typealias UnwrappedType = AppIntents.IntentMediaItem - typealias
typealias ValueType = AppIntents.IntentMediaItem - var
var displayRepresentation: AppIntents.DisplayRepresentation { get } - var
var projectedAsValue: Any { get }
Header
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 } }