setCaptions method

Future<void> setCaptions(
  1. int textureId,
  2. List<Map<String, dynamic>> cues,
  3. Map<String, dynamic> style
)

Replaces the caption cues and style of the loaded timeline.

cues is a list of JSON-compatible maps produced by TimelineCaptionCue.toMap and style by TimelineCaptionStyle.toMap. A single native overlay renders the active cue at each presentation time, so the composition is rebuilt exactly once regardless of the number of cues.

Implementation

Future<void> setCaptions(
  int textureId,
  List<Map<String, dynamic>> cues,
  Map<String, dynamic> style,
) {
  throw UnimplementedError('setCaptions() has not been implemented.');
}