Class SubtitlesPreviewView

java.lang.Object
android.view.View
android.view.ViewGroup
android.widget.FrameLayout
com.castlabs.android.subtitles.SubtitlesPreviewView
All Implemented Interfaces:
Drawable.Callback, AccessibilityEventSource, KeyEvent.Callback, ViewManager, ViewParent

public class SubtitlesPreviewView extends FrameLayout
View component that can be added to show a preview of subtitles with a given style.
Since:
3.1.0
  • Constructor Details

    • SubtitlesPreviewView

      public SubtitlesPreviewView(Context context)
    • SubtitlesPreviewView

      public SubtitlesPreviewView(Context context, AttributeSet attrs)
    • SubtitlesPreviewView

      public SubtitlesPreviewView(Context context, AttributeSet attrs, int defStyleAttr)
  • Method Details

    • setSubtitlesStyle

      public void setSubtitlesStyle(@NonNull com.castlabs.subtitles.presentation.SubtitlesStyle subtitleStyle)
      Set the current style
      Parameters:
      subtitleStyle - The style
    • setText

      public void setText(@NonNull String text)
      The preview text
      Parameters:
      text - The preview text