# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

# ViewTranslationCallback

`public interface ViewTranslationCallback`
``

android.view.translation.ViewTranslationCallback

Callback for handling the translated information show or hide in the `View`.

## Summary

### Public methods
`abstract boolean` | `onClearTranslation(View view)` Called when the user finish the Ui translation and no longer to show the translated text.
`abstract boolean` | `onHideTranslation(View view)` Called when the user wants to show the original text instead of the translated text.
`abstract boolean` | `onShowTranslation(View view)` Called when the translated text is ready to show or if the user has requested to reshow the translated content after hiding it.

## Public methods

### onClearTranslation

    public abstract boolean onClearTranslation (View view)

Called when the user finish the Ui translation and no longer to show the translated text.

Parameters
`view` | `View`: This value cannot be `null`.

Returns
`boolean` | `true` if the View handles clearing the translation.

### onHideTranslation

    public abstract boolean onHideTranslation (View view)

Called when the user wants to show the original text instead of the translated text. This method will not be called before `View#onViewTranslationResponse` or `View#onViewTranslationResponse`.

Parameters
`view` | `View`: This value cannot be `null`.

Returns
`boolean` | `true` if the View handles hiding the translation.

### onShowTranslation

    public abstract boolean onShowTranslation (View view)

Called when the translated text is ready to show or if the user has requested to reshow the translated content after hiding it.

The translated content can be obtained from `View#getViewTranslationResponse`. This method will not be called before `View#onViewTranslationResponse` or `View#onVirtualViewTranslationResponses`. See `View#onViewTranslationResponse` for how to get the translated information.

Parameters
`view` | `View`: This value cannot be `null`.

Returns
`boolean` | `true` if the View handles showing the translation.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*