TeamsCaptions Class
- java.
lang. Object - CallCaptions
- com.
azure. android. communication. calling. TeamsCaptions
- com.
public class TeamsCaptions extends CallCaptions
Teams captions for managing captions for a Teams Interop call.
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
addOnActiveCaptionLanguageChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnActiveCaptionLanguageChanged events. ActiveCaptionLanguage Event. Occurs when caption language is changed. |
void |
addOnActiveSpokenLanguageChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnActiveSpokenLanguageChanged events. ActiveSpokenLanguage Event. Occurs when spoken language is changed. |
void |
addOnCaptionsEnabledChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnCaptionsEnabledChanged events. IsEnabled Event. Occurs when captions is started or stopped. |
void |
addOnCaptionsReceivedListener(TeamsCaptionsListener listener)
Adds the specified listener to receive OnCaptionsReceived events. CaptionsReceived Event. Occurs when captions is received for a call. |
String |
getActiveCaptionLanguage()
Get active caption language. |
List<String> |
getSupportedCaptionLanguages()
List of supported captions languages for Captions. |
void |
removeOnActiveCaptionLanguageChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnActiveCaptionLanguageChanged events. ActiveCaptionLanguage Event. Occurs when caption language is changed. |
void |
removeOnActiveSpokenLanguageChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnActiveSpokenLanguageChanged events. ActiveSpokenLanguage Event. Occurs when spoken language is changed. |
void |
removeOnCaptionsEnabledChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnCaptionsEnabledChanged events. IsEnabled Event. Occurs when captions is started or stopped. |
void |
removeOnCaptionsReceivedListener(TeamsCaptionsListener listener)
Removes the specified listener to receive OnCaptionsReceived events. CaptionsReceived Event. Occurs when captions is received for a call. |
CompletableFuture<Void> |
setCaptionLanguage(final String language)
Set the captions language. |
Inherited Members
Method Details
addOnActiveCaptionLanguageChangedListener
public void addOnActiveCaptionLanguageChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnActiveCaptionLanguageChanged events. ActiveCaptionLanguage Event. Occurs when caption language is changed.
Parameters:
addOnActiveSpokenLanguageChangedListener
public void addOnActiveSpokenLanguageChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnActiveSpokenLanguageChanged events. ActiveSpokenLanguage Event. Occurs when spoken language is changed.
Parameters:
addOnCaptionsEnabledChangedListener
public void addOnCaptionsEnabledChangedListener(PropertyChangedListener listener)
Adds the specified listener to receive OnCaptionsEnabledChanged events. IsEnabled Event. Occurs when captions is started or stopped.
Parameters:
addOnCaptionsReceivedListener
public void addOnCaptionsReceivedListener(TeamsCaptionsListener listener)
Adds the specified listener to receive OnCaptionsReceived events. CaptionsReceived Event. Occurs when captions is received for a call.
Parameters:
getActiveCaptionLanguage
public String getActiveCaptionLanguage()
Get active caption language.
getSupportedCaptionLanguages
public List
List of supported captions languages for Captions.
removeOnActiveCaptionLanguageChangedListener
public void removeOnActiveCaptionLanguageChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnActiveCaptionLanguageChanged events. ActiveCaptionLanguage Event. Occurs when caption language is changed.
Parameters:
removeOnActiveSpokenLanguageChangedListener
public void removeOnActiveSpokenLanguageChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnActiveSpokenLanguageChanged events. ActiveSpokenLanguage Event. Occurs when spoken language is changed.
Parameters:
removeOnCaptionsEnabledChangedListener
public void removeOnCaptionsEnabledChangedListener(PropertyChangedListener listener)
Removes the specified listener to receive OnCaptionsEnabledChanged events. IsEnabled Event. Occurs when captions is started or stopped.
Parameters:
removeOnCaptionsReceivedListener
public void removeOnCaptionsReceivedListener(TeamsCaptionsListener listener)
Removes the specified listener to receive OnCaptionsReceived events. CaptionsReceived Event. Occurs when captions is received for a call.
Parameters:
setCaptionLanguage
public CompletableFuture
Set the captions language.
Parameters: