SoftInputExtensions.HideSoftInputAsync(ITextInput, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.