# Print output for @column tags ?> UiTranslationStateCallback - Android SDK | Android Developers

Most visited

Recently visited

UiTranslationStateCallback

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).

Summary

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 sourceLocale to targetLocale.

Public methods

onFinished

public abstract void onFinished ()

The UI Translation session has ended.

onPaused

public abstract void onPaused ()

The system is requesting that the application temporarily show the UI contents in their original language.

onResumed

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.

onStarted

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.