The Google Glass Explorer Edition SDK is deprecated. This documentation is no longer being maintained. If you're interested in developing Glass solutions for enterprise clients, visit the Google Glass Enterprise Edition developer documentation.

Slider.Determinate

Added in API level XE22

A determinate slider that tracks a position from left to right. Remains visible until hidden. Clients are responsible for hiding and possibly re-showing the slider at proper points in the owning context' life-cycle.

Sample usage:

 Determinate slider = Slider.from(view).startDeterminate(10, 0);
 ....
   slider.setPosition(p);  // slide through p in [0,10]
 ....
 slider.hide();
 

Public Methods
abstract int
getMax()
abstract float
abstract void
hide()
abstract void
setPosition(float position)
abstract void
show()

Public Methods

Added in API level XE22

public abstract int getMax ()

Returns maximum value for position.

Added in API level XE22

public abstract float getPosition ()

Returns current position.

Added in API level XE22

public abstract void hide ()

Hides the determinate slider, if not hidden already.

Added in API level XE22

public abstract void setPosition (float position)

Sets the position, typically in the range 0 and getMax(). Values that fall outside this range may be used for a tugging effect.

Added in API level XE22

public abstract void show ()

Shows the determinate slider, if not visible already.