Builder
class Builder
| kotlin.Any | |
| ↳ | android.view.translation.TranslationRequest.Builder |
A builder for TranslationRequest
Summary
| Public constructors | |
|---|---|
Builder() |
|
| Public methods | |
|---|---|
| TranslationRequest |
build()Builds the instance. |
| TranslationRequest.Builder |
Request flags. |
| TranslationRequest.Builder |
List of |
| TranslationRequest.Builder |
List of |
Public constructors
Public methods
build
fun build(): TranslationRequest
Builds the instance. This builder should not be touched after calling this!
| Return | |
|---|---|
TranslationRequest |
This value cannot be null. |
setFlags
fun setFlags(value: Int): TranslationRequest.Builder
Request flags. FLAG_TRANSLATION_RESULT by default.
| Return | |
|---|---|
TranslationRequest.Builder |
This value cannot be null. |
setTranslationRequestValues
fun setTranslationRequestValues(value: MutableList<TranslationRequestValue!>): TranslationRequest.Builder
List of TranslationRequestValues to be translated. The index of entries in this list will be their respective key in the android.util.SparseArray returned by calling TranslationResponse.getTranslationResponseValues().
| Parameters | |
|---|---|
value |
MutableList<TranslationRequestValue!>: This value cannot be null. |
| Return | |
|---|---|
TranslationRequest.Builder |
This value cannot be null. |
setViewTranslationRequests
fun setViewTranslationRequests(value: MutableList<ViewTranslationRequest!>): TranslationRequest.Builder
List of ViewTranslationRequests to be translated. The index of entries in this list will be their respective key in the android.util.SparseArray returned by calling TranslationResponse.getViewTranslationResponses().
| Parameters | |
|---|---|
value |
MutableList<ViewTranslationRequest!>: This value cannot be null. |
| Return | |
|---|---|
TranslationRequest.Builder |
This value cannot be null. |