Class MPMediaItem

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class MPMediaItem
extends MPMediaEntity
  • Constructor Details

    • MPMediaItem

      public MPMediaItem()
    • MPMediaItem

      protected MPMediaItem​(NSObject.Handle h, long handle)
    • MPMediaItem

      protected MPMediaItem​(NSObject.SkipInit skipInit)
  • Method Details

    • getPersistentID

      public long getPersistentID()
      Overrides:
      getPersistentID in class MPMediaEntity
    • getMediaType

      public MPMediaType getMediaType()
    • getTitle

      public String getTitle()
    • getAlbumTitle

      public String getAlbumTitle()
    • getAlbumPersistentID

      public long getAlbumPersistentID()
    • getArtist

      public String getArtist()
    • getArtistPersistentID

      public long getArtistPersistentID()
    • getAlbumArtist

      public String getAlbumArtist()
    • getAlbumArtistPersistentID

      public long getAlbumArtistPersistentID()
    • getGenre

      public String getGenre()
    • getGenrePersistentID

      public long getGenrePersistentID()
    • getComposer

      public String getComposer()
    • getComposerPersistentID

      public long getComposerPersistentID()
    • getPlaybackDuration

      public double getPlaybackDuration()
    • getAlbumTrackNumber

      public long getAlbumTrackNumber()
    • getAlbumTrackCount

      public long getAlbumTrackCount()
    • getDiscNumber

      public long getDiscNumber()
    • getDiscCount

      public long getDiscCount()
    • getArtwork

      public MPMediaItemArtwork getArtwork()
    • isExplicitItem

      public boolean isExplicitItem()
      Since:
      Available in iOS 10.0 and later.
    • getLyrics

      public String getLyrics()
    • isCompilation

      public boolean isCompilation()
    • getReleaseDate

      public NSDate getReleaseDate()
    • getBeatsPerMinute

      public long getBeatsPerMinute()
    • getComments

      public String getComments()
    • getAssetURL

      public NSURL getAssetURL()
    • isCloudItem

      public boolean isCloudItem()
    • isProtectedAsset

      public boolean isProtectedAsset()
      Since:
      Available in iOS 9.2 and later.
    • getPodcastTitle

      public String getPodcastTitle()
    • getPodcastPersistentID

      public long getPodcastPersistentID()
    • getPlayCount

      public long getPlayCount()
    • getSkipCount

      public long getSkipCount()
    • getRating

      public long getRating()
    • getLastPlayedDate

      public NSDate getLastPlayedDate()
    • getUserGrouping

      public String getUserGrouping()
    • getBookmarkTime

      public double getBookmarkTime()
    • getDateAdded

      public NSDate getDateAdded()
      Since:
      Available in iOS 10.0 and later.
    • getPlaybackStoreID

      public String getPlaybackStoreID()
      Since:
      Available in iOS 10.3 and later.
    • isPreorder

      public boolean isPreorder()
      Since:
      Available in iOS 10.3 and later.
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • getPersistentIDLegacy

      public long getPersistentIDLegacy()
      Overrides:
      getPersistentIDLegacy in class MPMediaEntity
    • getAlbumPersistentIDLegacy

      public long getAlbumPersistentIDLegacy()
      Since:
      Available in iOS 4.2 and later.
    • getArtistPersistentIDLegacy

      public long getArtistPersistentIDLegacy()
      Since:
      Available in iOS 4.2 and later.
    • getAlbumArtistPersistentIDLegacy

      public long getAlbumArtistPersistentIDLegacy()
      Since:
      Available in iOS 4.2 and later.
    • getGenrePersistentIDLegacy

      public long getGenrePersistentIDLegacy()
      Since:
      Available in iOS 4.2 and later.
    • getComposerPersistentIDLegacy

      public long getComposerPersistentIDLegacy()
      Since:
      Available in iOS 4.2 and later.
    • getPodcastPersistentIDLegacy

      public long getPodcastPersistentIDLegacy()
      Since:
      Available in iOS 4.2 and later.
    • getMediaTypeLegacy

      public MPMediaType getMediaTypeLegacy()
    • getTitleLegacy

      public String getTitleLegacy()
    • getAlbumTitleLegacy

      public String getAlbumTitleLegacy()
    • getArtistLegacy

      public String getArtistLegacy()
    • getAlbumArtistLegacy

      public String getAlbumArtistLegacy()
    • getGenreLegacy

      public String getGenreLegacy()
    • getComposerLegacy

      public String getComposerLegacy()
    • getPlaybackDurationLegacy

      public double getPlaybackDurationLegacy()
    • getAlbumTrackNumberLegacy

      public int getAlbumTrackNumberLegacy()
    • getAlbumTrackCountLegacy

      public int getAlbumTrackCountLegacy()
    • getDiscNumberLegacy

      public int getDiscNumberLegacy()
    • getDiscCountLegacy

      public int getDiscCountLegacy()
    • getArtworkLegacy

      public MPMediaItemArtwork getArtworkLegacy()
    • getLyricsLegacy

      public String getLyricsLegacy()
    • isCompilationLegacy

      public boolean isCompilationLegacy()
    • getReleaseDateLegacy

      public NSDate getReleaseDateLegacy()
      Since:
      Available in iOS 4.0 and later.
    • getBeatsPerMinuteLegacy

      public int getBeatsPerMinuteLegacy()
      Since:
      Available in iOS 4.0 and later.
    • getCommentsLegacy

      public String getCommentsLegacy()
      Since:
      Available in iOS 4.0 and later.
    • getAssetURLLegacy

      public NSURL getAssetURLLegacy()
      Since:
      Available in iOS 4.0 and later.
    • isCloudItemLegacy

      public boolean isCloudItemLegacy()
      Since:
      Available in iOS 6.0 and later.
    • getPodcastTitleLegacy

      public String getPodcastTitleLegacy()
    • getPlayCountLegacy

      public int getPlayCountLegacy()
    • getSkipCountLegacy

      public int getSkipCountLegacy()
    • getRatingLegacy

      public int getRatingLegacy()
    • getLastPlayedDateLegacy

      public NSDate getLastPlayedDateLegacy()
    • getUserGroupingLegacy

      public String getUserGroupingLegacy()
      Since:
      Available in iOS 4.0 and later.
    • getBookmarkTimeLegacy

      public double getBookmarkTimeLegacy()
      Since:
      Available in iOS 6.0 and later.
    • canFilterByProperty

      public static boolean canFilterByProperty​(MPMediaEntityProperty property)
    • getPersistentIDProperty

      public static MPMediaEntityProperty getPersistentIDProperty​(MPMediaGrouping groupingType)
    • getTitleProperty

      public static MPMediaEntityProperty getTitleProperty​(MPMediaGrouping groupingType)