CallCaptions Class
- java.
lang. Object - com.
azure. android. communication. calling. CallCaptions
- com.
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. |
Captions |
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
List of supported spoken languages for Captions.
isEnabled
public boolean isEnabled()
Indicates if captions is enabled in current call.
setSpokenLanguage
public CompletableFuture
Set the spoken language.
Parameters:
startCaptions
public CompletableFuture
Starts the captions.
Parameters:
stopCaptions
public CompletableFuture
Stop the captions.