Class MediaMetaData
java.lang.Object
com.codename1.media.MediaMetaData
MetaData for use by
RemoteControlListener to provide information about
the currently playing background media on the device's lock screen.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the album art for the media.getArt()Gets the art for the current media.Gets the display icon for the media.intGets the current number of tracks in the current play list.Gets the media subtitle.getTitle()Gets the media title.intGets the media track number.voidsetAlbumArt(Image albumArt) Sets the album art for the media.voidSets the art for the current media.voidsetDisplayIcon(Image displayIcon) Sets the display icon for the media.voidsetNumTracks(int numTracks) Sets the current number of tracks in the current play list.voidsetSubtitle(String subtitle) Sets the media subtitle.voidSets the media title.voidsetTrackNumber(int trackNumber) Sets the media track number.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Constructor Details
-
MediaMetaData
public MediaMetaData()
-
-
Method Details
-
getTitle
Gets the media title.
Returns
the title
-
setTitle
Sets the media title.
Parameters
title: the title to set
-
getSubtitle
Gets the media subtitle.
Returns
the subtitle
-
setSubtitle
Sets the media subtitle.
Parameters
subtitle: 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
trackNumber: 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
numTracks: the numTracks to set
-
getDisplayIcon
Gets the display icon for the media.
Returns
the displayIcon
-
setDisplayIcon
Sets the display icon for the media.
Parameters
displayIcon: the displayIcon to set
-
getAlbumArt
Gets the album art for the media.
Returns
the albumArt
-
setAlbumArt
Sets the album art for the media.
Parameters
albumArt: the albumArt to set
-
getArt
Gets the art for the current media.
Returns
the art
-
setArt
Sets the art for the current media.
Parameters
art: the art to set
-