TranslationRequestFlags Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the requested translation results and whether partial responses are accepted.
This enumeration supports a bitwise combination of its member values.
[System.Flags]
public enum TranslationRequestFlags
[<System.Flags>]
type TranslationRequestFlags =
- Inheritance
-
TranslationRequestFlags
- Attributes
Fields
| Name | Value | Description |
|---|---|---|
| TranslationResult | 1 | Requests the standard translation result. |
| DictionaryResult | 2 | Indicates this request wants to receive the dictionary result. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| TransliterationResult | 4 | Indicates this request wants to receive the transliteration result. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| PartialResponses | 8 | Indicates this request is willing to accept partial responses. The partial responses can be accessed by TranslationResponse.getTranslationResponseValues() or TranslationResponse.getViewTranslationResponses(). These responses will each contain only a subset of the corresponding translated values. The are no guarantees to the number of translated values or the order in which these values are returned in the TranslationResponse. This flag denotes the client can expect multiple partial responses, but there may not necessarily be multiple responses. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
Remarks
These values correspond to the FLAG_ constants in Android's TranslationRequest and can be combined. The default is TranslationResult. Accepting partial responses does not guarantee that the service sends more than one response.