Contents

audiobooks()

Creates a media query that matches audio book items and that groups and sorts collections by audio book name.

Declaration

class func audiobooks() -> MPMediaQuery

Return Value

A media query that matches media items of type audioBook and that uses the default 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.” An audiobooks() query matches all audioBook items, whether or not they’re also of other media types.

See Also

Creating media queries