sk.baka.ambient
Interface IContentListener

All Known Implementing Classes:
ContextController, PlayerController

public interface IContentListener

Generates events that some kind of a content is available.

Author:
Martin Vysny

Method Summary
 void coverLoaded(TrackMetadataBean track)
          A cover for given track has been successfully downloaded.
 void lyricsLoaded(TrackMetadataBean track, java.util.List<LyrdbTrack> lyrics)
          A lyrics event.
 

Method Detail

coverLoaded

void coverLoaded(TrackMetadataBean track)
A cover for given track has been successfully downloaded. Note that if the cache size is set to a very small value the image may already be purged from the cache. To avoid this either set a sensible cache size value, e.g. 128kb, or turn off the image downloading by setting offline mode to true.

Parameters:
track - the track.

lyricsLoaded

void lyricsLoaded(TrackMetadataBean track,
                  java.util.List<LyrdbTrack> lyrics)
A lyrics event. Either lyrics for given track has been successfully downloaded or user needs to select one from given lyrics list.

Parameters:
track - the track.
lyrics - if non-null then user needs to select the correct karaoke from this list. The list may be empty - in this case no karaoke files are available. If null then the karaoke file is available locally. If non-null and is empty then no karaoke files are available.


Copyright © 2007-2009. All Rights Reserved.