Package com.castlabs.android.subtitles
Class ExoSubtitlesStyleObserver
- java.lang.Object
-
- com.castlabs.android.subtitles.ExoSubtitlesStyleObserver
-
- All Implemented Interfaces:
SubtitlesStyleObserver
public class ExoSubtitlesStyleObserver extends Object implements SubtitlesStyleObserver
Implementation of theSubtitlesStyleObserver
that is used to pass the current subtitle style to the underlying ExoPlayer track renderer view. This is an internal class and you usually do not need to interact with the class manually.- Since:
- 3.1.0
-
-
Constructor Summary
Constructors Constructor Description ExoSubtitlesStyleObserver(com.google.android.exoplayer2.ui.SubtitleView view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onStyleChange(SubtitlesStyle style)
Called when a new style needs to be applied.
-
-
-
Method Detail
-
onStyleChange
public void onStyleChange(@Nullable SubtitlesStyle style)
Description copied from interface:SubtitlesStyleObserver
Called when a new style needs to be applied. If null is passed here, the default style should be applied.- Specified by:
onStyleChange
in interfaceSubtitlesStyleObserver
- Parameters:
style
- The style or null to use the default style
-
-