public class HKUI
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
bgType
linear or radial
|
java.util.ArrayList<java.lang.Double> |
bottomColor
bottom (linear) or center (radial) color
|
java.util.ArrayList<java.lang.Double> |
colorStops
positions for the colors from 0 to 100
|
boolean |
hasPlayPause
UI should display a playPause button
|
boolean |
hasScrubber
UI should display a playPause button and timeline scrubber
|
java.util.ArrayList<java.lang.Double> |
topColor
top (linear) or outer (radial) color
|
Constructor and Description |
---|
HKUI() |
Modifier and Type | Method and Description |
---|---|
void |
getBackgroundColor()
gets the current background color
this is run by the SDK when each chapter loads
|
void |
setBackgroundColor(int topColor,
int bottomColor)
Change the background colors without changing the style, default is radial
|
void |
setBackgroundColor(int topColor,
int bottomColor,
java.lang.String bgType)
Change the background style with two specified colors
|
public java.util.ArrayList<java.lang.Double> topColor
public java.util.ArrayList<java.lang.Double> bottomColor
public java.lang.String bgType
public java.util.ArrayList<java.lang.Double> colorStops
public boolean hasPlayPause
public boolean hasScrubber
public void setBackgroundColor(int topColor, int bottomColor)
topColor
- Primary colorbottomColor
- Secondary colorpublic void setBackgroundColor(int topColor, int bottomColor, java.lang.String bgType)
topColor
- Primary colorbottomColor
- Secondary colorbgType
- Background style ("linear" or "radial", default is "radial")public void getBackgroundColor()