CallCaptions Class

  • java.lang.Object
    • com.azure.android.communication.calling.CallCaptions

public class CallCaptions

Call captions for managing common captions functionality.

Method Summary

Modifier and Type Method and Description
void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

String getActiveSpokenLanguage()

Get active spoken language.

CaptionsType getCaptionsType()

Get captions type.

List<String> getSupportedSpokenLanguages()

List of supported spoken languages for Captions.

boolean isEnabled()

Indicates if captions is enabled in current call.

CompletableFuture<Void> setSpokenLanguage(final String language)

Set the spoken language.

CompletableFuture<Void> startCaptions(final StartCaptionsOptions options)

Starts the captions.

CompletableFuture<Void> stopCaptions()

Stop the captions.

Method Details

finalize

protected void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

getActiveSpokenLanguage

public String getActiveSpokenLanguage()

Get active spoken language.

getCaptionsType

public CaptionsType getCaptionsType()

Get captions type.

getSupportedSpokenLanguages

public List getSupportedSpokenLanguages()

List of supported spoken languages for Captions.

isEnabled

public boolean isEnabled()

Indicates if captions is enabled in current call.

setSpokenLanguage

public CompletableFuture setSpokenLanguage(final String language)

Set the spoken language.

Parameters:

language

startCaptions

public CompletableFuture startCaptions(final StartCaptionsOptions options)

Starts the captions.

Parameters:

options

stopCaptions

public CompletableFuture stopCaptions()

Stop the captions.

Applies to