Package com.biodigital.humansdk
Class HKUI
java.lang.Object
com.biodigital.humansdk.HKUI
public class HKUI
extends java.lang.Object
UI settings
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
bgType
linear or radialjava.util.ArrayList<java.lang.Double>
bottomColor
bottom (linear) or center (radial) colorjava.util.ArrayList<java.lang.Double>
colorStops
positions for the colors from 0 to 100boolean
hasPlayPause
UI should display a playPause buttonboolean
hasScrubber
UI should display a playPause button and timeline scrubberjava.util.ArrayList<java.lang.Double>
topColor
top (linear) or outer (radial) color -
Constructor Summary
Constructors Constructor Description HKUI()
-
Method Summary
Modifier and Type Method Description void
getBackgroundColor()
gets the current background color this is run by the SDK when each chapter loadsvoid
hideUI()
hide the built in BioDigital UIvoid
presetBackgroundColor(int topColor, int bottomColor)
Change the background colors without changing the style, default is radialvoid
presetBackgroundColor(int topColor, int bottomColor, java.lang.String bgType)
Change the background style with two specified colorsvoid
setBackgroundColor(int topColor, int bottomColor)
Change the background colors without changing the style, default is radialvoid
setBackgroundColor(int topColor, int bottomColor, java.lang.String bgType)
Change the background style with two specified colorsvoid
setOption(HumanUIOptions option, java.lang.Boolean value)
set an option true or false
-
Field Details
-
topColor
public java.util.ArrayList<java.lang.Double> topColortop (linear) or outer (radial) color -
bottomColor
public java.util.ArrayList<java.lang.Double> bottomColorbottom (linear) or center (radial) color -
bgType
public java.lang.String bgTypelinear or radial -
colorStops
public java.util.ArrayList<java.lang.Double> colorStopspositions for the colors from 0 to 100 -
hasPlayPause
public boolean hasPlayPauseUI should display a playPause button -
hasScrubber
public boolean hasScrubberUI should display a playPause button and timeline scrubber
-
-
Constructor Details
-
HKUI
public HKUI()
-
-
Method Details
-
setOption
set an option true or false- Parameters:
option
- any UI optionvalue
- true or false
-
hideUI
public void hideUI()hide the built in BioDigital UI -
setBackgroundColor
public void setBackgroundColor(int topColor, int bottomColor)Change the background colors without changing the style, default is radial- Parameters:
topColor
- Primary colorbottomColor
- Secondary color
-
presetBackgroundColor
public void presetBackgroundColor(int topColor, int bottomColor)Change the background colors without changing the style, default is radial- Parameters:
topColor
- Primary colorbottomColor
- Secondary color
-
setBackgroundColor
public void setBackgroundColor(int topColor, int bottomColor, java.lang.String bgType)Change the background style with two specified colors- Parameters:
topColor
- Primary colorbottomColor
- Secondary colorbgType
- Background style ("linear" or "radial", default is "radial")
-
presetBackgroundColor
public void presetBackgroundColor(int topColor, int bottomColor, java.lang.String bgType)Change the background style with two specified colors- Parameters:
topColor
- Primary colorbottomColor
- Secondary colorbgType
- Background style ("linear" or "radial", default is "radial")
-
getBackgroundColor
public void getBackgroundColor()gets the current background color this is run by the SDK when each chapter loads
-