One Logo Pool Ball
MediaPlayer · IOS API REFERENCE

MPMediaItem

class · iOS 3.0+ · SDK 27.1

class MPMediaItem

Members (42)

static · iOS 4.2+

persistentIDProperty

TypeScript
static persistentIDProperty(groupingType: MPMediaGrouping): string
Swift declaration
class func persistentIDProperty(forGroupingType groupingType: MPMediaGrouping) -> String
static · iOS 4.2+

titleProperty

TypeScript
static titleProperty(groupingType: MPMediaGrouping): string
Swift declaration
class func titleProperty(forGroupingType groupingType: MPMediaGrouping) -> String
init

init

TypeScript
static init(): MPMediaItem
Swift declaration
init()
get · iOS 7.0+

albumArtist

TypeScript
get albumArtist(): (string) | null
Swift declaration
var albumArtist: String? { get }
get · iOS 8.0+

albumArtistPersistentID

TypeScript
get albumArtistPersistentID(): number
Swift declaration
var albumArtistPersistentID: MPMediaEntityPersistentID { get }
get · iOS 8.0+

albumPersistentID

TypeScript
get albumPersistentID(): number
Swift declaration
var albumPersistentID: MPMediaEntityPersistentID { get }
get · iOS 7.0+

albumTitle

TypeScript
get albumTitle(): (string) | null
Swift declaration
var albumTitle: String? { get }
get · iOS 8.0+

albumTrackCount

TypeScript
get albumTrackCount(): number
Swift declaration
var albumTrackCount: Int { get }
get · iOS 7.0+

albumTrackNumber

TypeScript
get albumTrackNumber(): number
Swift declaration
var albumTrackNumber: Int { get }
get · iOS 7.0+

artist

TypeScript
get artist(): (string) | null
Swift declaration
var artist: String? { get }
get · iOS 8.0+

artistPersistentID

TypeScript
get artistPersistentID(): number
Swift declaration
var artistPersistentID: MPMediaEntityPersistentID { get }
get · iOS 7.0+

artwork

TypeScript
get artwork(): (MPMediaItemArtwork) | null
Swift declaration
var artwork: MPMediaItemArtwork? { get }
get · iOS 8.0+

assetURL

TypeScript
get assetURL(): (string) | null
Swift declaration
var assetURL: URL? { get }
get · iOS 8.0+

beatsPerMinute

TypeScript
get beatsPerMinute(): number
Swift declaration
var beatsPerMinute: Int { get }
get · iOS 7.0+

bookmarkTime

TypeScript
get bookmarkTime(): number
Swift declaration
var bookmarkTime: TimeInterval { get }
get · iOS 8.0+

isCloudItem

TypeScript
get isCloudItem(): boolean
Swift declaration
var isCloudItem: Bool { get }
get · iOS 8.0+

comments

TypeScript
get comments(): (string) | null
Swift declaration
var comments: String? { get }
get · iOS 8.0+

isCompilation

TypeScript
get isCompilation(): boolean
Swift declaration
var isCompilation: Bool { get }
get · iOS 7.0+

composer

TypeScript
get composer(): (string) | null
Swift declaration
var composer: String? { get }
get · iOS 8.0+

composerPersistentID

TypeScript
get composerPersistentID(): number
Swift declaration
var composerPersistentID: MPMediaEntityPersistentID { get }
get · iOS 10.0+

dateAdded

TypeScript
get dateAdded(): globalThis.Date
Swift declaration
var dateAdded: Date { get }
get · iOS 8.0+

discCount

TypeScript
get discCount(): number
Swift declaration
var discCount: Int { get }
get · iOS 7.0+

discNumber

TypeScript
get discNumber(): number
Swift declaration
var discNumber: Int { get }
get · iOS 10.0+

isExplicitItem

TypeScript
get isExplicitItem(): boolean
Swift declaration
var isExplicitItem: Bool { get }
get · iOS 7.0+

genre

TypeScript
get genre(): (string) | null
Swift declaration
var genre: String? { get }
get · iOS 8.0+

genrePersistentID

TypeScript
get genrePersistentID(): number
Swift declaration
var genrePersistentID: MPMediaEntityPersistentID { get }
get · iOS 7.0+

lastPlayedDate

TypeScript
get lastPlayedDate(): (globalThis.Date) | null
Swift declaration
var lastPlayedDate: Date? { get }
get · iOS 8.0+

lyrics

TypeScript
get lyrics(): (string) | null
Swift declaration
var lyrics: String? { get }
get · iOS 7.0+

mediaType

TypeScript
get mediaType(): MPMediaType
Swift declaration
var mediaType: MPMediaType { get }
get · iOS 5.0+

persistentID

TypeScript
get persistentID(): number
Swift declaration
var persistentID: MPMediaEntityPersistentID { get }
get · iOS 7.0+

playCount

TypeScript
get playCount(): number
Swift declaration
var playCount: Int { get }
get · iOS 7.0+

playbackDuration

TypeScript
get playbackDuration(): number
Swift declaration
var playbackDuration: TimeInterval { get }
get · iOS 10.3+

playbackStoreID

TypeScript
get playbackStoreID(): string
Swift declaration
var playbackStoreID: String { get }
get · iOS 8.0+

podcastPersistentID

TypeScript
get podcastPersistentID(): number
Swift declaration
var podcastPersistentID: MPMediaEntityPersistentID { get }
get · iOS 7.0+

podcastTitle

TypeScript
get podcastTitle(): (string) | null
Swift declaration
var podcastTitle: String? { get }
get · iOS 10.3+

isPreorder

TypeScript
get isPreorder(): boolean
Swift declaration
var isPreorder: Bool { get }
get · iOS 9.2+

hasProtectedAsset

TypeScript
get hasProtectedAsset(): boolean
Swift declaration
var hasProtectedAsset: Bool { get }
get · iOS 7.0+

rating

TypeScript
get rating(): number
Swift declaration
var rating: Int { get }
get · iOS 7.0+

releaseDate

TypeScript
get releaseDate(): (globalThis.Date) | null
Swift declaration
var releaseDate: Date? { get }
get · iOS 7.0+

skipCount

TypeScript
get skipCount(): number
Swift declaration
var skipCount: Int { get }
get · iOS 7.0+

title

TypeScript
get title(): (string) | null
Swift declaration
var title: String? { get }
get · iOS 8.0+

userGrouping

TypeScript
get userGrouping(): (string) | null
Swift declaration
var userGrouping: String? { get }

Skipped declarations

No declarations were skipped in this snapshot.

All MediaPlayer types →