Package com.castlabs.android.subtitles

## Interface SubtitlesPreview

- All Superinterfaces:
    `SubtitlesStyleObserver`

      public interface SubtitlesPreview
      extends SubtitlesStyleObserver

  Implementations of this interface provide a view that can render a preview of a given subtitle text.
  Since:
    3.1.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `View` | `getView​(Context context)` | A view component that will render the subtitle text
    `void` | `setText​(String cationText)` | Set the subtitle text that will be rendered as a preview

    - ### Methods inherited from interface com.castlabs.android.subtitles.SubtitlesStyleObserver

      `onStyleChange`

- - ### Method Detail

    - #### getView

          @NonNull
          View getView​(@NonNull
                       Context context)

      A view component that will render the subtitle text
      Parameters:
        `context` - The context
      Returns:
        The preview view

    - #### setText

          void setText​(@NonNull
                       String cationText)

      Set the subtitle text that will be rendered as a preview
      Parameters:
        `cationText` - The caption text