public class MediaMetaData
- Object
- MediaMetaData
MetaData for use by
RemoteControlListener to provide information about
the currently playing background media on the device’s lock screen.Constructors
public MediaMetaData() |
Methods
public String getTitle() | Gets the media title. |
public void setTitle(String title) | Sets the media title. |
public String getSubtitle() | Gets the media subtitle. |
public void setSubtitle(String subtitle) | Sets the media subtitle. |
public int getTrackNumber() | Gets the media track number. |
public void setTrackNumber(int trackNumber) | Sets the media track number. |
public int getNumTracks() | Gets the current number of tracks in the current play list. |
public void setNumTracks(int numTracks) | Sets the current number of tracks in the current play list. |
public Image getDisplayIcon() | Gets the display icon for the media. |
public void setDisplayIcon(Image displayIcon) | Sets the display icon for the media. |
public Image getAlbumArt() | Gets the album art for the media. |
public void setAlbumArt(Image albumArt) | Sets the album art for the media. |
public Image getArt() | Gets the art for the current media. |
public void setArt(Image art) | Sets the art for the current media. |
Inherited methods
Constructor details
MediaMetaData
public MediaMetaData()Method details
getTitle
public String getTitle()Gets the media title.
Returns
the title
setTitle
public void setTitle(String title)Sets the media title.
Parameters
titleString- the title to set
getSubtitle
public String getSubtitle()Gets the media subtitle.
Returns
the subtitle
setSubtitle
public void setSubtitle(String subtitle)Sets the media subtitle.
Parameters
subtitleString- the subtitle to set
getTrackNumber
public int getTrackNumber()Gets the media track number.
Returns
the trackNumber
setTrackNumber
public void setTrackNumber(int trackNumber)Sets the media track number.
Parameters
trackNumberint- the trackNumber to set
getNumTracks
public int getNumTracks()Gets the current number of tracks in the current play list.
Returns
the numTracks
setNumTracks
public void setNumTracks(int numTracks)Sets the current number of tracks in the current play list.
Parameters
numTracksint- the numTracks to set
getDisplayIcon
public Image getDisplayIcon()Gets the display icon for the media.
Returns
the displayIcon
setDisplayIcon
public void setDisplayIcon(Image displayIcon)Sets the display icon for the media.
Parameters
displayIconImage- the displayIcon to set
getAlbumArt
public Image getAlbumArt()Gets the album art for the media.
Returns
the albumArt
setAlbumArt
public void setAlbumArt(Image albumArt)Sets the album art for the media.
Parameters
albumArtImage- the albumArt to set
getArt
public Image getArt()Gets the art for the current media.
Returns
the art
setArt
public void setArt(Image art)Sets the art for the current media.
Parameters
artImage- the art to set