Share via


SoftInputExtensions.HideSoftInputAsync(ITextInput, CancellationToken) Method

Definition

If a soft input pane is currently showing, this will attempt to hide it.

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)

Parameters

targetView
ITextInput
token
CancellationToken

Cancellation token

Returns

Returns true if the platform was able to hide the soft input pane.

Applies to