Class TeamsCaptions
- Object
-
- CallCaptions
-
- TeamsCaptions
-
public final class TeamsCaptions extends CallCaptions
Teams captions for managing captions for a Teams Interop call.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOnActiveCaptionLanguageChangedListener(PropertyChangedListener listener)Adds the specified listener to receive OnActiveCaptionLanguageChanged events.voidaddOnActiveSpokenLanguageChangedListener(PropertyChangedListener listener)Adds the specified listener to receive OnActiveSpokenLanguageChanged events.voidaddOnCaptionsEnabledChangedListener(PropertyChangedListener listener)Adds the specified listener to receive OnCaptionsEnabledChanged events.voidaddOnCaptionsReceivedListener(TeamsCaptionsListener listener)Adds the specified listener to receive OnCaptionsReceived events.StringgetActiveCaptionLanguage()Get active caption language.List<String>getSupportedCaptionLanguages()List of supported captions languages for Captions.voidremoveOnActiveCaptionLanguageChangedListener(PropertyChangedListener listener)Removes the specified listener to receive OnActiveCaptionLanguageChanged events.voidremoveOnActiveSpokenLanguageChangedListener(PropertyChangedListener listener)Removes the specified listener to receive OnActiveSpokenLanguageChanged events.voidremoveOnCaptionsEnabledChangedListener(PropertyChangedListener listener)Removes the specified listener to receive OnCaptionsEnabledChanged events.voidremoveOnCaptionsReceivedListener(TeamsCaptionsListener listener)Removes the specified listener to receive OnCaptionsReceived events.CompletableFuture<Void>setCaptionLanguage(String language)Set the captions language.-
Methods inherited from class CallCaptions
finalize, getActiveSpokenLanguage, getCaptionsType, getSupportedSpokenLanguages, isEnabled, setSpokenLanguage, startCaptions, stopCaptions
-
-
-
-
Method Detail
-
getActiveCaptionLanguage
public String getActiveCaptionLanguage()
Get active caption language.
-
getSupportedCaptionLanguages
public List<String> getSupportedCaptionLanguages()
List of supported captions languages for Captions.
-
addOnCaptionsEnabledChangedListener
public void addOnCaptionsEnabledChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnCaptionsEnabledChanged events. IsEnabled Event. Occurs when captions is started or stopped.
-
removeOnCaptionsEnabledChangedListener
public void removeOnCaptionsEnabledChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnCaptionsEnabledChanged events. IsEnabled Event. Occurs when captions is started or stopped.
-
addOnActiveSpokenLanguageChangedListener
public void addOnActiveSpokenLanguageChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnActiveSpokenLanguageChanged events. ActiveSpokenLanguage Event. Occurs when spoken language is changed.
-
removeOnActiveSpokenLanguageChangedListener
public void removeOnActiveSpokenLanguageChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnActiveSpokenLanguageChanged events. ActiveSpokenLanguage Event. Occurs when spoken language is changed.
-
addOnActiveCaptionLanguageChangedListener
public void addOnActiveCaptionLanguageChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnActiveCaptionLanguageChanged events. ActiveCaptionLanguage Event. Occurs when caption language is changed.
-
removeOnActiveCaptionLanguageChangedListener
public void removeOnActiveCaptionLanguageChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnActiveCaptionLanguageChanged events. ActiveCaptionLanguage Event. Occurs when caption language is changed.
-
addOnCaptionsReceivedListener
public void addOnCaptionsReceivedListener(TeamsCaptionsListener listener)
Adds the specified listener to receive OnCaptionsReceived events. CaptionsReceived Event. Occurs when captions is received for a call.
-
removeOnCaptionsReceivedListener
public void removeOnCaptionsReceivedListener(TeamsCaptionsListener listener)
Removes the specified listener to receive OnCaptionsReceived events. CaptionsReceived Event. Occurs when captions is received for a call.
-
setCaptionLanguage
public CompletableFuture<Void> setCaptionLanguage(String language)
Set the captions language.
-
-