SoftInputExtensions.HideSoftInputAsync(ITextInput, CancellationToken) 方法

定義

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

public static System.Threading.Tasks.Task<bool> HideSoftInputAsync(this Microsoft.Maui.ITextInput targetView, System.Threading.CancellationToken token);

參數

targetView
ITextInput
token
CancellationToken

取消權杖

傳回

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

適用於

產品 版本
.NET MAUI 8, 9