Type Method


Creates a new library destination for the media item.


class func library() -> Self

Return Value

A new INMediaDestinationReference object or nil if unable to create.


A library is a generic concept that you must define for your app. For example, in Apple Music, it’s the Apple Music library, while in Podcasts, it’s the user’s subscribed podcasts.

See Also

Creating a Media Destination Object

class func playlistDestination(withName: String) -> Self

Creates a new playlist destination for the media item.