Class MPContentItem

  • All Implemented Interfaces:
    NSObject

    public class MPContentItem
    extends NSObject
    MPContentItem represents high-level metadata for a particular media item for representation outside the client application. Examples of media items that a developer might want to represent include song files, streaming audio URLs, or radio stations.
    • Constructor Detail

      • MPContentItem

        protected MPContentItem​(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)
      • 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()
      • 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()
      • version_static

        public static long version_static()
      • artwork

        public MPMediaItemArtwork artwork()
        Artwork for this item. Examples of artwork for a content item are the album cover for a song, or a movie poster for a movie.
      • identifier

        public java.lang.String identifier()
        A unique identifier for this content item. (Required)
      • initWithIdentifier

        public MPContentItem initWithIdentifier​(java.lang.String identifier)
        Designated initializer. A unique identifier is required to identify the item for later use.
      • isContainer

        public boolean isContainer()
        Represents whether the content item is a container that may contain other content items, e.g. an album or a playlist.
      • setContainer

        public void setContainer​(boolean value)
        Represents whether the content item is a container that may contain other content items, e.g. an album or a playlist.
      • isExplicitContent

        public boolean isExplicitContent()
        Represents whether this content item is explicit content
      • setExplicitContent

        public void setExplicitContent​(boolean value)
        Represents whether this content item is explicit content
      • isPlayable

        public boolean isPlayable()
        Represents whether the content item is actionable from a playback perspective. Albums are playable, for example, because selecting an album for playback means the app should play each song in the album in order. An example of a content item that may not be playable is a genre, since an app experience typically doesn't involve selecting an entire genre for playback.
      • setPlayable

        public void setPlayable​(boolean value)
        Represents whether the content item is actionable from a playback perspective. Albums are playable, for example, because selecting an album for playback means the app should play each song in the album in order. An example of a content item that may not be playable is a genre, since an app experience typically doesn't involve selecting an entire genre for playback.
      • isStreamingContent

        public boolean isStreamingContent()
        Represents whether this content item is streaming content, i.e. from the cloud where the content is not stored locally.
      • setStreamingContent

        public void setStreamingContent​(boolean value)
        Represents whether this content item is streaming content, i.e. from the cloud where the content is not stored locally.
      • playbackProgress

        public float playbackProgress()
        Represents the current playback progress of the item. 0.0 = not watched/listened/viewed, 1.0 = fully watched/listened/viewed Default is -1.0 (no progress indicator shown)
      • setArtwork

        public void setArtwork​(MPMediaItemArtwork value)
        Artwork for this item. Examples of artwork for a content item are the album cover for a song, or a movie poster for a movie.
      • setPlaybackProgress

        public void setPlaybackProgress​(float value)
        Represents the current playback progress of the item. 0.0 = not watched/listened/viewed, 1.0 = fully watched/listened/viewed Default is -1.0 (no progress indicator shown)
      • setSubtitle

        public void setSubtitle​(java.lang.String value)
        A subtitle for this item. If this were representing a song, this would usually be the artist or composer.
      • setTitle

        public void setTitle​(java.lang.String value)
        A title for this item. Usually this would be the track name, if representing a song, the episode name of a podcast, etc.
      • subtitle

        public java.lang.String subtitle()
        A subtitle for this item. If this were representing a song, this would usually be the artist or composer.
      • title

        public java.lang.String title()
        A title for this item. Usually this would be the track name, if representing a song, the episode name of a podcast, etc.