Share via


SoftInputExtensions.HideSoftInputAsync(ITextInput, CancellationToken) 方法

定義

如果目前顯示軟式輸入窗格,這會嘗試隱藏它。

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)

參數

targetView
ITextInput
token
CancellationToken

取消權杖

傳回

如果平台能夠隱藏軟式輸入窗格,則傳 true 回 。

適用於