java.lang.Object | |||
↳ | java.util.Observable | ||
↳ | fm.audiobox.core.models.Model | ||
↳ | fm.audiobox.core.models.Preferences |
General preferences of the user, mostly used in the Cloud Web Player.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | PATH |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static final Map<String, String> | COLORS | Contains the color mapping: key is the name, value is the RGB value. | |||||||||
protected boolean | accept_emails | ||||||||||
protected boolean | autoplay | ||||||||||
protected String | color | ||||||||||
protected boolean | hide_tooltips | ||||||||||
protected boolean | js_demuxer | ||||||||||
protected boolean | prebuffer | ||||||||||
protected boolean | repeat | ||||||||||
protected boolean | shuffle | ||||||||||
protected String | top_bar_bg | ||||||||||
protected String | volume_level |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Preferences() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
areTooltipsHidden()
Checks whether the CWP tooltips should be shown or not.
| ||||||||||
boolean |
doesAcceptsEmails()
Does accepts emails.
| ||||||||||
String |
getColor()
Gets the color chosen by the user.
| ||||||||||
String |
getColorValue()
Gets the RGB value of the color chosen by the user.
| ||||||||||
String |
getTopBarBg()
Gets CWP top bar background name.
| ||||||||||
String |
getVolumeLevel()
Gets CWP volume level.
| ||||||||||
boolean |
isAutoplayEnabled()
Checks if CWP autoplay is enabled by the user.
| ||||||||||
boolean |
isJsDemuxerEnabled()
Checks if CWP JS demuxer is enabled by the user.
| ||||||||||
boolean |
isPrebufferEnabled()
Checks if CWP prebuffer is enabled by the user.
| ||||||||||
boolean |
isRepeatEnabled()
Checks if CWP repetition is enabled by the user.
| ||||||||||
boolean |
isShuffleEnabled()
Checks if CWP shuffle is enabled by the user.
| ||||||||||
void |
setAcceptEmails(boolean accept_emails)
Sets accept emails.
| ||||||||||
void |
setAutoplay(boolean autoplay)
Enable or disable autoplay feature on CWP.
| ||||||||||
void |
setColor(String colorName)
Sets color (must be one of the
COLORS keys). | ||||||||||
void |
setHideTooltips(boolean hide_tooltips)
Sets CWP hide tooltips preference.
| ||||||||||
void |
setJsDemuxer(boolean js_demuxer)
Enable or disable CWP experimental apple losseless support.
| ||||||||||
void |
setPrebuffer(boolean prebuffer)
Enable or disable prebuffer feature on CWP.
| ||||||||||
void |
setRepeat(boolean repeat)
Enable or disable repeat feature on CWP.
| ||||||||||
void |
setShuffle(boolean shuffle)
Enable or disable shuffle feature on CWP.
| ||||||||||
void |
setTopBarBg(String top_bar_bg)
Sets top bar bg.
| ||||||||||
void |
setVolumeLevel(String volume_level)
Sets CWP volume level.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
fm.audiobox.core.models.Model
| |||||||||||
From class
java.util.Observable
| |||||||||||
From class
java.lang.Object
|
Contains the color mapping: key is the name, value is the RGB value.
Checks whether the CWP tooltips should be shown or not.
Does accepts emails.
Gets the color chosen by the user.
Gets the RGB value of the color chosen by the user.
Gets CWP top bar background name.
Gets CWP volume level.
Checks if CWP autoplay is enabled by the user.
Checks if CWP JS demuxer is enabled by the user.
Checks if CWP prebuffer is enabled by the user.
Checks if CWP repetition is enabled by the user.
Checks if CWP shuffle is enabled by the user.
Sets accept emails.
accept_emails | true to accept email false otherwise |
---|
Enable or disable autoplay feature on CWP.
autoplay | true to enable false to disable |
---|
Sets color (must be one of the COLORS
keys).
colorName | the color name to set |
---|
IllegalArgumentException | the illegal argument exception |
---|
Sets CWP hide tooltips preference.
hide_tooltips | true to show tooltips false to hide |
---|
Enable or disable CWP experimental apple losseless support.
js_demuxer | true to enable false to disable |
---|
Enable or disable prebuffer feature on CWP.
prebuffer | true to enable false to disable |
---|
Enable or disable repeat feature on CWP.
repeat | true to enable false to disable |
---|
Enable or disable shuffle feature on CWP.
shuffle | true to enable false to disable |
---|
Sets top bar bg.
top_bar_bg | the top _ bar _ bg |
---|
Sets CWP volume level.
volume_level | a range from 0 (mute) to 100 (max) in form of a String |
---|