Class MediaSegmentView

java.lang.Object
android.view.View
com.castlabs.sdk.debug.view.MediaSegmentView
All Implemented Interfaces:
Drawable.Callback, AccessibilityEventSource, KeyEvent.Callback

public class MediaSegmentView extends View
Simple view that renders a media segment as a line with its relative position and duration
  • Constructor Details

    • MediaSegmentView

      public MediaSegmentView(Context context)
    • MediaSegmentView

      public MediaSegmentView(Context context, @Nullable AttributeSet attrs)
    • MediaSegmentView

      public MediaSegmentView(Context context, @Nullable AttributeSet attrs, int defStyleAttr)
    • MediaSegmentView

      public MediaSegmentView(Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes)
  • Method Details

    • setTimes

      public void setTimes(long startTimeMs, long endTimeMs, long durationMs, @ColorInt int color)