---
title: MPMediaEntityPersistentID
framework: mediaplayer
role: symbol
role_heading: Type Alias
path: mediaplayer/mpmediaentitypersistentid
---

# MPMediaEntityPersistentID

Defines the type for storing a persistent identifier to a particular entity.

## Declaration

```swift
typealias MPMediaEntityPersistentID = UInt64
```

## Discussion

Discussion The value persists across application launches and across syncs that don’t change the sync status of the media item. The value isn’t guaranteed to persist across a sync/unsync/sync cycle.

## See Also

### Working with media properties

- [canFilter(byProperty:)](mediaplayer/mpmediaentity/canfilter(byproperty:).md)
- [enumerateValues(forProperties:using:)](mediaplayer/mpmediaentity/enumeratevalues(forproperties:using:).md)
- [persistentID](mediaplayer/mpmediaentity/persistentid.md)
- [subscript(_:)](mediaplayer/mpmediaentity/subscript(_:).md)
- [value(forProperty:)](mediaplayer/mpmediaentity/value(forproperty:).md)
