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.StringbgTypelinear or radialjava.util.ArrayList<java.lang.Double>bottomColorbottom (linear) or center (radial) colorjava.util.ArrayList<java.lang.Double>colorStopspositions for the colors from 0 to 100booleanhasPlayPauseUI should display a playPause buttonbooleanhasScrubberUI should display a playPause button and timeline scrubberjava.util.ArrayList<java.lang.Double>topColortop (linear) or outer (radial) color -
Constructor Summary
Constructors Constructor Description HKUI() -
Method Summary
Modifier and Type Method Description voidgetBackgroundColor()gets the current background color this is run by the SDK when each chapter loadsvoidhideUI()hide the built in BioDigital UIvoidpresetBackgroundColor(int topColor, int bottomColor)Change the background colors without changing the style, default is radialvoidpresetBackgroundColor(int topColor, int bottomColor, java.lang.String bgType)Change the background style with two specified colorsvoidsetBackgroundColor(int topColor, int bottomColor)Change the background colors without changing the style, default is radialvoidsetBackgroundColor(int topColor, int bottomColor, java.lang.String bgType)Change the background style with two specified colorsvoidsetOption(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
-