public class Preferences extends Model
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
accept_emails |
protected boolean |
autoplay |
protected java.lang.String |
color |
static java.util.Map<java.lang.String,java.lang.String> |
COLORS
Contains the color mapping: key is the name, value is the RGB value.
|
protected boolean |
hide_tooltips |
protected boolean |
js_demuxer |
static java.lang.String |
PATH |
protected boolean |
prebuffer |
protected boolean |
repeat |
protected boolean |
shuffle |
protected java.lang.String |
top_bar_bg |
protected java.lang.String |
volume_level |
| Constructor and Description |
|---|
Preferences() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areTooltipsHidden()
Checks whether the CWP tooltips should be shown or not.
|
boolean |
doesAcceptsEmails()
Does accepts emails.
|
java.lang.String |
getColor()
Gets the color chosen by the user.
|
java.lang.String |
getColorValue()
Gets the RGB value of the color chosen by the user.
|
java.lang.String |
getTopBarBg()
Gets CWP top bar background name.
|
java.lang.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(java.lang.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(java.lang.String top_bar_bg)
Sets top bar bg.
|
void |
setVolumeLevel(java.lang.String volume_level)
Sets CWP volume level.
|
getProp, notifyObservers, setProppublic static final java.lang.String PATH
public static final java.util.Map<java.lang.String,java.lang.String> COLORS
protected java.lang.String color
protected boolean repeat
protected boolean shuffle
protected boolean autoplay
protected boolean prebuffer
protected boolean js_demuxer
protected java.lang.String top_bar_bg
protected java.lang.String volume_level
protected boolean accept_emails
protected boolean hide_tooltips
public java.lang.String getColor()
public java.lang.String getColorValue()
public boolean isRepeatEnabled()
public boolean isShuffleEnabled()
public boolean isAutoplayEnabled()
public boolean isPrebufferEnabled()
public boolean isJsDemuxerEnabled()
public java.lang.String getTopBarBg()
public java.lang.String getVolumeLevel()
public boolean doesAcceptsEmails()
public boolean areTooltipsHidden()
public void setColor(java.lang.String colorName)
throws java.lang.IllegalArgumentException
COLORS keys).colorName - the color name to setjava.lang.IllegalArgumentException - the illegal argument exceptionpublic void setRepeat(boolean repeat)
repeat - true to enable false to disablepublic void setShuffle(boolean shuffle)
shuffle - true to enable false to disablepublic void setAutoplay(boolean autoplay)
autoplay - true to enable false to disablepublic void setPrebuffer(boolean prebuffer)
prebuffer - true to enable false to disablepublic void setJsDemuxer(boolean js_demuxer)
js_demuxer - true to enable false to disablepublic void setTopBarBg(java.lang.String top_bar_bg)
top_bar_bg - the top _ bar _ bgpublic void setVolumeLevel(java.lang.String volume_level)
volume_level - a range from 0 (mute) to 100 (max) in form of a Stringpublic void setAcceptEmails(boolean accept_emails)
accept_emails - true to accept email false otherwisepublic void setHideTooltips(boolean hide_tooltips)
hide_tooltips - true to show tooltips false to hide