Instance Property

collectionSections

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

Declaration

var collectionSections: [MPMediaQuerySection]? { get }

Discussion

The value of this property may be nil if there is no appropriate section grouping of the media item collections.

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 itemSections: [MPMediaQuerySection]?

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

enum MPMediaGrouping

Keys used to configure a media query.