Sdílet prostřednictvím


SoftInputExtensions.HideSoftInputAsync(ITextInput, CancellationToken) Metoda

Definice

Pokud se aktuálně zobrazuje podokno měkkého vstupu, pokusí se ho skrýt.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ HideSoftInputAsync(Microsoft::Maui::ITextInput ^ targetView, System::Threading::CancellationToken token);
public static System.Threading.Tasks.Task<bool> HideSoftInputAsync (this Microsoft.Maui.ITextInput targetView, System.Threading.CancellationToken token);
static member HideSoftInputAsync : Microsoft.Maui.ITextInput * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function HideSoftInputAsync (targetView As ITextInput, token As CancellationToken) As Task(Of Boolean)

Parametry

targetView
ITextInput
token
CancellationToken

Token zrušení

Návraty

Vrátí hodnotu true , pokud se platformě podařilo skrýt podokno měkkého vstupu.

Platí pro