SLRadio scriptable methods
SLRadio offers a set a four (04) methods to be used to customize it:
-
setPresetsFile(String file):
Tells the widget which URL to retrieve the webradios information from. It should be a xml file, respecting conventions you will find here.
-
setTemplate(int tpl):
Sets the template to be used why loading the widget. For now, it only support two templates. You’ll then provide either 1 or 2 for the tpl parameter.
-
setBackground(String file):
Sets a background file for the whole widget. This is mostly used to make the widget fit your webpage background, in case you’re using a file.
-
setBackgroundColor(String color):
Sets a background color for the whole widget. Like the previous one, it’s also used to make the widget fit your webpage background, but using only color names like “green”, “blue”, “pink”…
