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 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