Instance Property

itemSections

An array representing the section grouping of the query's specified media items.

Declaration

var itemSections: [MPMediaQuerySection]? { get }

Discussion

This property consists of an array of MPMediaQuerySection instances. The value of this property may be nil if there is no appropriate section grouping of the media items.

See Also

Configuring Media Queries

var filterPredicates: Set<MPMediaPredicate>?

The media property predicates of the media query.

func addFilterPredicate(MPMediaPredicate)

Adds a media property predicate to a query.

func removeFilterPredicate(MPMediaPredicate)

Removes a filter predicate from a query.

var groupingType: MPMediaGrouping

The grouping for collections retrieved with the media query.

var collectionSections: [MPMediaQuerySection]?

An array representing the section grouping of the query's specified media item collections.

enum MPMediaGrouping

Keys used to configure a media query.