Interface SubtitlesStyleObserver

All Known Subinterfaces:
SubtitlesPreview
All Known Implementing Classes:
ExoSubtitlesStyleObserver

public interface SubtitlesStyleObserver
Implementations of this interface can receive a SubtitlesStyle that will be used to render subtitles and closed captions.
Since:
3.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onStyleChange(com.castlabs.subtitles.presentation.SubtitlesStyle style)
    Called when a new style needs to be applied.
  • Method Details

    • onStyleChange

      void onStyleChange(@Nullable com.castlabs.subtitles.presentation.SubtitlesStyle style)
      Called when a new style needs to be applied. If null is passed here, the default style should be applied.
      Parameters:
      style - The style or null to use the default style