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. API-Since: 3.0
    • Constructor Detail

      • MPMediaItem

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

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

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

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

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

        @NotNull
        public static @NotNull 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • persistentIDPropertyForGroupingType

        @NotNull
        public static @NotNull java.lang.String persistentIDPropertyForGroupingType​(long groupingType)
        Returns the item property for a given grouping type. For example, [MPMediaItem persistentIDPropertyForGroupingType:MPMediaGroupingAlbum] returns MPMediaItemPropertyAlbumPersistentID. API-Since: 4.2
      • 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

        @NotNull
        public static @NotNull 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. API-Since: 4.2
      • version_static

        public static long version_static()
      • albumArtist

        @Nullable
        public @Nullable java.lang.String albumArtist()
        API-Since: 7.0
      • albumArtistPersistentID

        public long albumArtistPersistentID()
        API-Since: 8.0
      • albumPersistentID

        public long albumPersistentID()
        API-Since: 8.0
      • albumTitle

        @Nullable
        public @Nullable java.lang.String albumTitle()
        API-Since: 7.0
      • albumTrackCount

        public long albumTrackCount()
        API-Since: 8.0
      • albumTrackNumber

        public long albumTrackNumber()
        API-Since: 7.0
      • artist

        @Nullable
        public @Nullable java.lang.String artist()
        API-Since: 7.0
      • artistPersistentID

        public long artistPersistentID()
        API-Since: 8.0
      • assetURL

        @Nullable
        public @Nullable NSURL assetURL()
        API-Since: 8.0
      • beatsPerMinute

        public long beatsPerMinute()
        API-Since: 8.0
      • bookmarkTime

        public double bookmarkTime()
        API-Since: 7.0
      • comments

        @Nullable
        public @Nullable java.lang.String comments()
        API-Since: 8.0
      • composer

        @Nullable
        public @Nullable java.lang.String composer()
        API-Since: 7.0
      • composerPersistentID

        public long composerPersistentID()
        API-Since: 8.0
      • dateAdded

        @NotNull
        public @NotNull NSDate dateAdded()
        API-Since: 10.0
      • discCount

        public long discCount()
        API-Since: 8.0
      • discNumber

        public long discNumber()
        API-Since: 7.0
      • genre

        @Nullable
        public @Nullable java.lang.String genre()
        API-Since: 7.0
      • genrePersistentID

        public long genrePersistentID()
        API-Since: 8.0
      • hasProtectedAsset

        public boolean hasProtectedAsset()
        API-Since: 9.2
      • isCloudItem

        public boolean isCloudItem()
        API-Since: 8.0
      • isCompilation

        public boolean isCompilation()
        API-Since: 8.0
      • isExplicitItem

        public boolean isExplicitItem()
        API-Since: 10.0
      • lastPlayedDate

        @Nullable
        public @Nullable NSDate lastPlayedDate()
        API-Since: 7.0
      • lyrics

        @Nullable
        public @Nullable java.lang.String lyrics()
        API-Since: 8.0
      • mediaType

        public long mediaType()
        API-Since: 7.0
      • playCount

        public long playCount()
        API-Since: 7.0
      • playbackDuration

        public double playbackDuration()
        API-Since: 7.0
      • podcastPersistentID

        public long podcastPersistentID()
        API-Since: 8.0
      • podcastTitle

        @Nullable
        public @Nullable java.lang.String podcastTitle()
        API-Since: 7.0
      • rating

        public long rating()
        API-Since: 7.0
      • releaseDate

        @Nullable
        public @Nullable NSDate releaseDate()
        API-Since: 7.0
      • skipCount

        public long skipCount()
        API-Since: 7.0
      • _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

        @Nullable
        public @Nullable java.lang.String title()
        API-Since: 7.0
      • userGrouping

        @Nullable
        public @Nullable java.lang.String userGrouping()
        API-Since: 8.0
      • playbackStoreID

        @NotNull
        public @NotNull java.lang.String playbackStoreID()
        API-Since: 10.3
      • isPreorder

        public boolean isPreorder()
        API-Since: 10.3
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.