CastSeekBar

public class CastSeekBar extends View

A custom seek bar provided by the Cast SDK mimicking the Android SeekBar. The seek bar is capable of handling Cast-specific data, such as ad breaks and live stream information.

Inherited Constant Summary

Inherited Field Summary

Public Constructor Summary

CastSeekBar(Context context)
Constructor of CastSeekBar.
CastSeekBar(Context context, AttributeSet attrs)
Constructor of CastSeekBar.
CastSeekBar(Context context, AttributeSet attrs, int defStyleAttr)
Constructor of CastSeekBar.

Public Method Summary

int
getMaxProgress()
Returns the maximum progress.
int
getProgress()
Returns the progress.
void
onDraw(Canvas canvas)
boolean

Protected Method Summary

void
synchronized void
onMeasure(int widthMeasureSpec, int heightMeasureSpec)

Inherited Method Summary

Public Constructors

public CastSeekBar (Context context)

Constructor of CastSeekBar.

public CastSeekBar (Context context, AttributeSet attrs)

Constructor of CastSeekBar.

public CastSeekBar (Context context, AttributeSet attrs, int defStyleAttr)

Constructor of CastSeekBar.

Public Methods

public int getMaxProgress ()

Returns the maximum progress.

public int getProgress ()

Returns the progress.

The progress is calculated based on the media status. During user scrubbing and right after user scrubbing, it will return the progress where the user scrubbed into. When the progress gets updated again, the scrubbing state will be cleared and the method will return the progress from the current RemoteMediaClient.

public void onDraw (Canvas canvas)

public boolean onTouchEvent (MotionEvent event)

Protected Methods

protected void onDetachedFromWindow ()

protected synchronized void onMeasure (int widthMeasureSpec, int heightMeasureSpec)