Google is committed to advancing racial equity for Black communities. See how.


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, AttributeSet attrs, int defStyleAttr)

Public Method Summary

Returns the maximum progress.
Returns the progress.
onDraw(Canvas canvas)

Protected Method Summary

synchronized void
onMeasure(int widthMeasureSpec, int heightMeasureSpec)

Inherited Method Summary

Public Constructors

public CastSeekBar (Context context)

public CastSeekBar (Context context, AttributeSet attrs)

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

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)