# Print output for @column tags ?>
public
interface
UiTranslationStateCallback
android.view.translation.UiTranslationStateCallback |
Callback for listening to UI Translation state changes. See UiTranslationManager.registerUiTranslationStateCallback(java.util.concurrent.Executor, android.view.translation.UiTranslationStateCallback)
.
Public methods | |
---|---|
abstract
void
|
onFinished()
The UI Translation session has ended. |
abstract
void
|
onPaused()
The system is requesting that the application temporarily show the UI contents in their original language. |
default
void
|
onResumed(ULocale sourceLocale, ULocale targetLocale)
The system is requesting that the application restore from the temporarily paused state and show the content in translated language. |
default
void
|
onStarted(ULocale sourceLocale, ULocale targetLocale)
The system is requesting translation of the UI from |
public abstract void onFinished ()
The UI Translation session has ended.
public abstract void onPaused ()
The system is requesting that the application temporarily show the UI contents in their original language.
public void onResumed (ULocale sourceLocale, ULocale targetLocale)
The system is requesting that the application restore from the temporarily paused state and show the content in translated language.
Parameters | |
---|---|
sourceLocale |
ULocale : This value cannot be null . |
targetLocale |
ULocale : This value cannot be null . |
public void onStarted (ULocale sourceLocale, ULocale targetLocale)
The system is requesting translation of the UI from sourceLocale
to targetLocale
.
This is also called if either the requested sourceLocale
or targetLocale
has
changed.
Parameters | |
---|---|
sourceLocale |
ULocale : This value cannot be null . |
targetLocale |
ULocale : This value cannot be null . |