Contents

songs()

Creates a media query that matches music items and that groups and sorts collections by song name.

Declaration

class func songs() -> MPMediaQuery

Mentioned in

Return Value

A media query that matches media items of type music and has a grouping type of MPMediaGrouping.title.

Discussion

A media item can have more than one media type; for example, an item could be of types “music” and “podcast.” A songs() query matches all music items, whether or not they’re also of other media types.

See Also

Creating media queries