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如果平台能够隐藏软输入窗格,则返回 。

适用于