-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Description
Implement a set of APIs that allows the user to interact with the Soft Input InputPane Device. These APIs don't have anything to do with a physical InputPane.
MAUI Community Toolkit
MCT implemented these APIs for .NET7 as extension methods https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/extensions/keyboard-extensions. This has allowed users easy access to these APIs until we can release official APIs for .NET8. Once we implemented these features into .NET8 then MCT will deprecate their APIs for the .NET8 builds.
API Changes
We've implemented these inside MCT as extension methods. The plan is to copy the extension methods that are part of MCT into MAUI and then MCT will obsolete them on .NET8.
https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/extensions/InputPane-extensions
We can then expose the rest of the APIs through an Info class possibly inside Essentials.
Extension Methods
| API | Description |
|---|---|
| ShowSoftInputAsync(this ITextInput) | Opens the current software input pane and returns true if successful |
| HideSoftInputAsync(this ITextInput) | Closes the current software input pane and returns true if successful |
| IsSoftInputShowing(this ITextInput) | Indicates if the current software input pane is showing |
Related Specs
Validations
- Validate APIs on iOS/Catalyst and Android when hardware keyboard is attached.
Usage Scenarios
TBD
Backward Compatibility
N/A
Difficulty
Medium