TextPredictionGenerator Klasse
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Sagt japanische Wörter basierend auf einem phonetischen Zeichenpräfix voraus.
public ref class TextPredictionGenerator sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Data.Text.ITextPredictionGeneratorFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Experimental]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TextPredictionGenerator final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Data.Text.ITextPredictionGeneratorFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class TextPredictionGenerator final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Data.Text.ITextPredictionGeneratorFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Experimental]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TextPredictionGenerator
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Data.Text.ITextPredictionGeneratorFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class TextPredictionGenerator
function TextPredictionGenerator(languageTag)
Public NotInheritable Class TextPredictionGenerator
- Vererbung
- Attribute
Windows-Anforderungen
| Gerätefamilie |
Windows 10 (eingeführt in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
| API contract |
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)
|
Hinweise
Versionsverlauf
| Windows-Version | SDK-Version | Wertschöpfung |
|---|---|---|
| 1809 | 17763 | GetCandidatesAsync(String,UInt32,TextPredictionOptions,IEnumerable<String>) |
| 1809 | 17763 | GetNextWordCandidatesAsync |
| 1809 | 17763 | InputScope |
Konstruktoren
| TextPredictionGenerator(String) |
Erstellt ein TextPredictionGenerator-Objekt basierend auf einem bestimmten BCP-47-Sprachtag . |
Eigenschaften
| InputScope |
Ruft den Eingabebereich für die Textvorhersage ab oder legt diese fest. |
| LanguageAvailableButNotInstalled |
Bestimmt, ob das angegebene Sprachtag zum Generieren von Vorhersagen verfügbar, aber nicht auf dem Gerät des Benutzers installiert ist. |
| ResolvedLanguage |
Ruft das Sprachtag des erfolgreich erstellten TextPredictionGenerator-Objekts ab. |
Methoden
| GetCandidatesAsync(String) |
Ruft asynchron eine Liste von Kandidatenwörtern ab, die auf dem angegebenen phonetischen Zeichenpräfix basieren. |
| GetCandidatesAsync(String, UInt32) |
Ruft asynchron eine Liste von Kandidatenwörtern ab, bis zu einer maximalen Anzahl, basierend auf dem bereitgestellten phonetischen Zeichenpräfix. |
| GetCandidatesAsync(String, UInt32, TextPredictionOptions, IIterable<String>) |
Ruft asynchron eine Liste von Kandidatenwörtern ab, bis zu einer maximalen Anzahl, basierend auf dem bereitgestellten phonetischen Zeichenpräfix und den Optionen. |
| GetNextWordCandidatesAsync(UInt32, IIterable<String>) |
Ruft asynchron eine Auflistung von Zeichenfolgen ab, die Kandidaten für die Nächste-Wort-Vorhersage enthalten. |