SoftInputExtensions.ShowSoftInputAsync(ITextInput, CancellationToken) 方法

定义

如果软输入窗格当前处于隐藏状态,则会尝试显示该窗格。

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

参数

targetView
ITextInput
token
CancellationToken

取消令牌

返回

true如果平台能够显示软输入窗格,则返回 。

适用于