Class MPMediaItem

  • All Implemented Interfaces:
    NSCoding, NSSecureCoding, NSObject

    public class MPMediaItem
    extends MPMediaEntity
    An MPMediaItem represents a single piece of media in an MPMediaLibrary. Media items have a unique identifier which persists across application launches.
    • Constructor Detail

      • MPMediaItem

        protected MPMediaItem​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • canFilterByProperty

        public static boolean canFilterByProperty​(java.lang.String property)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • persistentIDPropertyForGroupingType

        public static java.lang.String persistentIDPropertyForGroupingType​(long groupingType)
        Returns the item property for a given grouping type. For example, [MPMediaItem persistentIDPropertyForGroupingType:MPMediaGroupingAlbum] returns MPMediaItemPropertyAlbumPersistentID.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • titlePropertyForGroupingType

        public static java.lang.String titlePropertyForGroupingType​(long groupingType)
        Returns the item property to determine a title for a given grouping type. For example, [MPMediaItem titlePropertyForGroupingType:MPMediaGroupingAlbum] returns MPMediaItemPropertyAlbumTitle. Note that distinct collections will not necessarily have unique titles, e.g. an album may exist with the title "Greatest Hits" for multiple artists.
      • version_static

        public static long version_static()
      • albumArtist

        public java.lang.String albumArtist()
      • albumArtistPersistentID

        public long albumArtistPersistentID()
      • albumPersistentID

        public long albumPersistentID()
      • albumTitle

        public java.lang.String albumTitle()
      • albumTrackCount

        public long albumTrackCount()
      • albumTrackNumber

        public long albumTrackNumber()
      • artist

        public java.lang.String artist()
      • artistPersistentID

        public long artistPersistentID()
      • assetURL

        public NSURL assetURL()
      • beatsPerMinute

        public long beatsPerMinute()
      • bookmarkTime

        public double bookmarkTime()
      • comments

        public java.lang.String comments()
      • composer

        public java.lang.String composer()
      • composerPersistentID

        public long composerPersistentID()
      • dateAdded

        public NSDate dateAdded()
      • discCount

        public long discCount()
      • discNumber

        public long discNumber()
      • genre

        public java.lang.String genre()
      • genrePersistentID

        public long genrePersistentID()
      • hasProtectedAsset

        public boolean hasProtectedAsset()
      • isCloudItem

        public boolean isCloudItem()
      • isCompilation

        public boolean isCompilation()
      • isExplicitItem

        public boolean isExplicitItem()
      • lastPlayedDate

        public NSDate lastPlayedDate()
      • lyrics

        public java.lang.String lyrics()
      • mediaType

        public long mediaType()
      • playCount

        public long playCount()
      • playbackDuration

        public double playbackDuration()
      • podcastPersistentID

        public long podcastPersistentID()
      • podcastTitle

        public java.lang.String podcastTitle()
      • rating

        public long rating()
      • releaseDate

        public NSDate releaseDate()
      • skipCount

        public long skipCount()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class MPMediaEntity
      • title

        public java.lang.String title()
      • userGrouping

        public java.lang.String userGrouping()
      • playbackStoreID

        public java.lang.String playbackStoreID()