Interface Track

    • Method Detail

      • getPlaylist

        Playlist getPlaylist()
        Return playlist this track is in.
        Returns:
        playlist
      • getIndex

        int getIndex()
        The index of the item in internal application order (zero-based).
        Returns:
        index
      • delete

        void delete()
        Deletes this track.
      • play

        void play()
        Plays this track.
      • getDatabaseID

        int getDatabaseID()
        Database ID (= Track ID in iTunes Music Library.xml).
        Returns:
        track id
      • setSortName

        void setSortName​(String sortName)
        Sets the sort name of this song.
        Specified by:
        setSortName in interface AudioSong
        Parameters:
        sortName - sort name
      • setSortComposer

        void setSortComposer​(String sortComposer)
        Sets the sort composer of this song.
        Specified by:
        setSortComposer in interface AudioSong
        Parameters:
        sortComposer - sort composer
      • setShow

        void setShow​(String show)
        Sets the show of this song.
        Specified by:
        setShow in interface AudioSong
        Parameters:
        show - show
      • setSortShow

        void setSortShow​(String sortShow)
        Sets the sort show of this song.
        Specified by:
        setSortShow in interface AudioSong
        Parameters:
        sortShow - sort show
      • setSortAlbumArtist

        void setSortAlbumArtist​(String sortAlbumArtist)
        Sets the sort albumArtist of this song.
        Specified by:
        setSortAlbumArtist in interface AudioSong
        Parameters:
        sortAlbumArtist - sort albumArtist
      • setSortArtist

        void setSortArtist​(String sortArtist)
        Sets the sort artist of this song.
        Specified by:
        setSortArtist in interface AudioSong
        Parameters:
        sortArtist - sort artist
      • setSortAlbum

        void setSortAlbum​(String sortAlbum)
        Sets the sort album of this song.
        Specified by:
        setSortAlbum in interface AudioSong
        Parameters:
        sortAlbum - sort album
      • getAlbumArtist

        String getAlbumArtist()
        The album artist of the track.
        Specified by:
        getAlbumArtist in interface AudioSong
        Returns:
        album artist
      • setAlbumArtist

        void setAlbumArtist​(String albumArtist)
        The album artist of the track
        Specified by:
        setAlbumArtist in interface AudioSong
        Parameters:
        albumArtist - album artist
      • getAlbum

        String getAlbum()
        The album containing the track.
        Specified by:
        getAlbum in interface AudioSong
        Returns:
        album name
      • setAlbum

        void setAlbum​(String album)
        The album containing the track
        Specified by:
        setAlbum in interface AudioSong
        Parameters:
        album - album
      • getArtist

        String getArtist()
        The artist/source of the track.
        Specified by:
        getArtist in interface AudioSong
        Returns:
        artist
      • setArtist

        void setArtist​(String artist)
        The artist/source of the track.
        Specified by:
        setArtist in interface AudioSong
        Parameters:
        artist - artist
      • getBpm

        int getBpm()
        The tempo of this track in beats per minute.
        Returns:
        BPM as integer
      • setBpm

        void setBpm​(int bpm)
        The tempo of this track in beats per minute.
        Parameters:
        bpm - BPM as integer
      • getGenre

        String getGenre()
        The music/audio genre (category) of the track.
        Specified by:
        getGenre in interface AudioSong
        Returns:
        genre
      • setGenre

        void setGenre​(String genre)
        The music/audio genre (category) of the track.
        Specified by:
        setGenre in interface AudioSong
        Parameters:
        genre - genre
      • getComments

        String getComments()
        Freeform notes about the track.
        Specified by:
        getComments in interface AudioSong
        Returns:
        comment
      • setComments

        void setComments​(String comments)
        Freeform notes about the track.
        Specified by:
        setComments in interface AudioSong
        Parameters:
        comments - comments
      • getComposer

        String getComposer()
        The composer of the track.
        Specified by:
        getComposer in interface AudioSong
        Returns:
        composer
      • setComposer

        void setComposer​(String composer)
        The composer of the track.
        Specified by:
        setComposer in interface AudioSong
        Parameters:
        composer - composer
      • getGrouping

        String getGrouping()
        The grouping (piece) of the track. Generally used to denote movements within a classical work.
        Specified by:
        getGrouping in interface AudioSong
        Returns:
        grouping
      • setGrouping

        void setGrouping​(String grouping)
        The grouping (piece) of the track. Generally used to denote movements within a classical work.
        Specified by:
        setGrouping in interface AudioSong
        Parameters:
        grouping - grouping
      • getLyrics

        String getLyrics()
        The lyrics of the track.
        Specified by:
        getLyrics in interface AudioSong
        Returns:
        lyrics
      • setLyrics

        void setLyrics​(String lyrics)
        The lyrics of the track.
        Specified by:
        setLyrics in interface AudioSong
        Parameters:
        lyrics - lyrics
      • isCompilation

        boolean isCompilation()
        Is this track from a compilation album?
        Specified by:
        isCompilation in interface AudioSong
        Returns:
        true or false
      • setCompilation

        void setCompilation​(boolean compilation)
        Is this track from a compilation album?
        Specified by:
        setCompilation in interface AudioSong
        Parameters:
        compilation - true or false
      • setTrackNumber

        void setTrackNumber​(int trackNumber)
        Tracknumber (of an album).
        Specified by:
        setTrackNumber in interface AudioSong
        Parameters:
        trackNumber - trackNumber
      • getTrackNumber

        int getTrackNumber()
        TrackNumber (of an album).
        Specified by:
        getTrackNumber in interface AudioSong
        Returns:
        trackNumber
      • setDiscNumber

        void setDiscNumber​(int discNumber)
        Discnumber (of a set).
        Specified by:
        setDiscNumber in interface AudioSong
        Parameters:
        discNumber - discNumber
      • getDiscNumber

        int getDiscNumber()
        DiscNumber (of a set).
        Specified by:
        getDiscNumber in interface AudioSong
        Returns:
        discNumber
      • setDiscCount

        void setDiscCount​(int count)
        Disc count (of a set).
        Specified by:
        setDiscCount in interface AudioSong
        Parameters:
        count - count
      • getDiscCount

        int getDiscCount()
        Disc count (of a set).
        Specified by:
        getDiscCount in interface AudioSong
        Returns:
        count
      • setPlayCount

        void setPlayCount​(int count)
        Play count.
        Specified by:
        setPlayCount in interface AudioSong
        Parameters:
        count - count
      • getPlayCount

        int getPlayCount()
        Play count.
        Specified by:
        getPlayCount in interface AudioSong
        Returns:
        play count
      • setSkipCount

        void setSkipCount​(int count)
        Skip count.
        Specified by:
        setSkipCount in interface AudioSong
        Parameters:
        count - count
      • getSkipCount

        int getSkipCount()
        Skip count.
        Specified by:
        getSkipCount in interface AudioSong
        Returns:
        skip count
      • getArtworkCount

        int getArtworkCount()
        Number of images belonging to this track.
        Specified by:
        getArtworkCount in interface AudioSong
        Returns:
        array of artworks
      • isEnabled

        boolean isEnabled()
        Description copied from interface: AudioSong
        Indicates whether this song is enabled or checked.
        Specified by:
        isEnabled in interface AudioSong
        Returns:
        true or false
      • setEnabled

        void setEnabled​(boolean enabled)
        Description copied from interface: AudioSong
        Enables/disables this song.
        Specified by:
        setEnabled in interface AudioSong
        Parameters:
        enabled - true or false
      • setAlbumRating

        void setAlbumRating​(int rating)
        Description copied from interface: AudioSong
        Sets album rating.
        Specified by:
        setAlbumRating in interface AudioSong
        Parameters:
        rating - integer between 0 and 100
      • setVolumeAdjustment

        void setVolumeAdjustment​(int volumeAdjustment)
        Description copied from interface: AudioSong
        Sets the volume adjustment
        Specified by:
        setVolumeAdjustment in interface AudioSong
        Parameters:
        volumeAdjustment - -100% - +100%
      • getVolumeAdjustment

        int getVolumeAdjustment()
        Description copied from interface: AudioSong
        Value between -255 and 255.
        Specified by:
        getVolumeAdjustment in interface AudioSong
        Returns:
        volumeAdjustment -100% - +100%