Package apple.mediaplayer.protocol
Interface MPPlayableContentDataSource
-
@Deprecated public interface MPPlayableContentDataSourceDeprecated.MPPlayableContentDataSource is a protocol that application objects conform to if they want to support external media players, such as vehicle head units. Data sources are responsible for providing metadata about your media to these systems in a meaningful way, so that features like user interfaces and play queues can be setup automatically. API-Since: 7.1 Deprecated-Since: 14.0 Deprecated-Message: Use CarPlay framework
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceMPPlayableContentDataSource.Block_beginLoadingChildItemsAtIndexPathCompletionHandlerDeprecated.static interfaceMPPlayableContentDataSource.Block_contentItemForIdentifierCompletionHandlerDeprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidbeginLoadingChildItemsAtIndexPathCompletionHandler(@NotNull NSIndexPath indexPath, @NotNull MPPlayableContentDataSource.Block_beginLoadingChildItemsAtIndexPathCompletionHandler completionHandler)Deprecated.Tells the data source to begin loading content items that are children of the item specified by indexPath.default booleanchildItemsDisplayPlaybackProgressAtIndexPath(@NotNull NSIndexPath indexPath)Deprecated.Tells MediaPlayer whether the content provided by the data source supports playback progress as a property of its metadata.@Nullable MPContentItemcontentItemAtIndexPath(@NotNull NSIndexPath indexPath)Deprecated.Returns the content item at the specified index path.default voidcontentItemForIdentifierCompletionHandler(@NotNull java.lang.String identifier, @NotNull MPPlayableContentDataSource.Block_contentItemForIdentifierCompletionHandler completionHandler)Deprecated.longnumberOfChildItemsAtIndexPath(@NotNull NSIndexPath indexPath)Deprecated.Returns the number of child nodes at the specified index path.
-
-
-
Method Detail
-
beginLoadingChildItemsAtIndexPathCompletionHandler
default void beginLoadingChildItemsAtIndexPathCompletionHandler(@NotNull @NotNull NSIndexPath indexPath, @NotNull @NotNull MPPlayableContentDataSource.Block_beginLoadingChildItemsAtIndexPathCompletionHandler completionHandler)Deprecated.Tells the data source to begin loading content items that are children of the item specified by indexPath. This is provided so that applications can begin asynchronous batched loading of content before MediaPlayer begins asking for content items to display. Client applications should always call the completion handler after loading has finished, if this method is implemented.
-
childItemsDisplayPlaybackProgressAtIndexPath
default boolean childItemsDisplayPlaybackProgressAtIndexPath(@NotNull @NotNull NSIndexPath indexPath)Deprecated.Tells MediaPlayer whether the content provided by the data source supports playback progress as a property of its metadata. If this method is not implemented, MediaPlayer will assume that progress is not supported for any content items.
-
contentItemAtIndexPath
@Nullable @Nullable MPContentItem contentItemAtIndexPath(@NotNull @NotNull NSIndexPath indexPath)
Deprecated.Returns the content item at the specified index path. If the content item is mutated after returning, its updated contents will be sent to MediaPlayer.
-
contentItemForIdentifierCompletionHandler
@Deprecated default void contentItemForIdentifierCompletionHandler(@NotNull @NotNull java.lang.String identifier, @NotNull @NotNull MPPlayableContentDataSource.Block_contentItemForIdentifierCompletionHandler completionHandler)Deprecated.Provides a content item for the provided identifier. Provide nil if there is no content item corresponding to the identifier. Provide an error if there is an error that will not allow content items to be retrieved. Client applications should always call the completion handler after loading has finished, if this method is implemented. API-Since: 10.0 Deprecated-Since: 14.0 Deprecated-Message: Use CarPlay framework
-
numberOfChildItemsAtIndexPath
long numberOfChildItemsAtIndexPath(@NotNull @NotNull NSIndexPath indexPath)Deprecated.Returns the number of child nodes at the specified index path. In a virtual filesystem, this would be the number of files in a specific folder. An empty index path represents the root node.
-
-