iOS Developer Library

Developer

MediaPlayer Framework Reference MPMediaQuerySection Class Reference

Options
Deployment Target:

On This Page
Language:

MPMediaQuerySection

A media query section represents a range of media items or media item collections from within an iPod library media query. You can use sections when displaying a query’s items or collections in your app’s user interface.

You obtain an array of media query sections by using the itemSections or collectionSections properties of a media query (an instance of the MPMediaQuery class). The property values of a media query section are read-only.

Inheritance


Import Statement


Swift

import MediaPlayer

Objective-C

@import MediaPlayer;

Availability


Available in iOS 4.2 and later.
  • title title Property

    The localized title of the media query section.

    Declaration

    Swift

    var title: String! { get }

    Objective-C

    @property(nonatomic, copy, readonly) NSString *title

    Import Statement

    Objective-C

    @import MediaPlayer;

    Swift

    import MediaPlayer

    Availability

    Available in iOS 4.2 and later.

  • range range Property

    The range in the media query's items or collections array that is represented by the media query section.

    Declaration

    Swift

    var range: NSRange { get }

    Objective-C

    @property(nonatomic, assign, readonly) NSRange range

    Import Statement

    Objective-C

    @import MediaPlayer;

    Swift

    import MediaPlayer

    Availability

    Available in iOS 4.2 and later.