You are reading 13.4.0. See this page in 13.4.1.
Titanium.Media.Item
Extends Titanium.Proxy
A representation of a media item returned by openMusicLibrary or queryMusicLibrary.
This is a read-only object that describes a single media item, not a playlist. Titanium does not support access to playlists.
Item objects cannot be created explicitly. The
openMusicLibrary returns Item objects in its
success callback function, while queryMusicLibrary
returns an array of Item objects.
Properties 38
Artist credited for the album containing this item.
The persistent identifier for an album artist.
The key for the persistent identifier for an album.
Title of the album containing this item.
Number of tracks for the album containing this item.
Track number for this item.
Inherited from Titanium.Proxy
The name of the API that this proxy corresponds to.
Artist credited for this item.
Image for the item's artwork as a Blob object, or null if no artwork is
available.
A URL pointing to the media item.
The number of musical beats per minute for the media item.
The user's place in the media item the most recent time it was played.
Inherited from Titanium.Proxy
Indicates if the proxy will bubble an event to its parent.
Default: true
Textual information about the media item.
Composer of this item.
Date when the item was added to the music library.
Total number of discs for the album containing this item.
Disc number for this item in the album.
Genre of this item.
The persistent identifier for a genre.
True if the item represents a protected asset.
True if the media item is an iCloud item.
True if this item is part of a compilation album.
True if this item is marked as "Explicit".
The most recent calendar date on which the user played the media item.
Lyrics for this item.
The type of the media.
At least in theory, a single item can have more than one media type, in which case the value represents a bitwise-OR of all the applicable media types.
The key for the persistent identifier for the media item.
Length (in seconds) of this item.
Used to enqueue store tracks by their ID.
Number of times the item has been played.
The persistent identifier for an audio podcast.
Title of a podcast item.
Only included if the media type is Titanium.Media.MUSIC_MEDIA_TYPE_PODCAST.
Rating for this item.
Date when this this item was released.
Number of times this item has been skipped.
Title of this item.
Grouping information for the media item.
Methods 4
Inherited from Titanium.Proxy
Adds the specified callback as an event listener for the named event.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| callback | Callback<Titanium.Event> | Callback function to invoke when the event is fired. 4 fields
|
applyProperties
since 3.0.0Inherited from Titanium.Proxy
Applies the properties to the proxy.
| Parameters | Type | Description |
|---|---|---|
| props | Dictionary | A dictionary of properties to apply. |
Inherited from Titanium.Proxy
Fires a synthesized event to any registered listeners.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| event? | Dictionary | A dictionary of keys and values to add to the Titanium.Event object sent to the listeners. |
Inherited from Titanium.Proxy
Removes the specified callback as an event listener for the named event.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| callback | Callback<Titanium.Event> | Callback function to remove. Must be the same function passed to 4 fields
|