Skip to content

Make DisplayAlert & DisplayActionSheet more consistent by adding Async #28053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 19, 2025

Conversation

jfversluis
Copy link
Member

Description of Change

This adds the Async suffix to DisplayAlert and DisplayActionSheet to be more consistent with the rest of the codebase and following the guidelines from Microsoft. The (now) old methods, without the Async suffix, are marked as obsolete.

Issues Fixed

Fixes #6720

@Copilot Copilot AI review requested due to automatic review settings February 26, 2025 09:58
@jfversluis jfversluis requested a review from a team as a code owner February 26, 2025 09:58
Copy link
Contributor

🚨 API change(s) detected @davidbritch FYI

@jfversluis jfversluis added this to the .NET 10.0-preview2 milestone Feb 26, 2025
@jfversluis jfversluis force-pushed the net10-displayprompt-noasync branch 2 times, most recently from a1e2853 to 55ed90d Compare February 26, 2025 11:17
@rmarinho rmarinho self-assigned this Mar 11, 2025
@jfversluis jfversluis force-pushed the net10-displayprompt-noasync branch from 55ed90d to a38a0be Compare March 11, 2025 20:53
@rmarinho rmarinho moved this from Todo to Ready To Review in MAUI SDK Ongoing Mar 18, 2025
Copy link
Member

@rmarinho rmarinho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems we are missing one

D:\a\1\s\src\Core\src\Handlers\Picker\PickerHandler.iOS.cs(249,13): error CS1061: 'PickerHandler' does not contain a definition for 'DisplayAlert' and no accessible extension method 'DisplayAlert' accepting a first argument of type 'PickerHandler' could be found (are you missing a using directive or an assembly reference?) [D:\a\1\s\src\Core\src\Core.csproj::TargetFramework=net10.0-maccatalyst18.2]

@github-project-automation github-project-automation bot moved this from Ready To Review to Changes Requested in MAUI SDK Ongoing Mar 18, 2025
@jfversluis jfversluis requested a review from rmarinho March 18, 2025 19:22
@jfversluis jfversluis moved this from Changes Requested to Ready To Review in MAUI SDK Ongoing Mar 18, 2025
@github-project-automation github-project-automation bot moved this from Ready To Review to Approved in MAUI SDK Ongoing Mar 19, 2025
@jfversluis
Copy link
Member Author

Failing test unrelated

@jfversluis jfversluis merged commit 48b2dde into net10.0 Mar 19, 2025
126 of 128 checks passed
@jfversluis jfversluis deleted the net10-displayprompt-noasync branch March 19, 2025 18:56
@github-project-automation github-project-automation bot moved this from Approved to Done in MAUI SDK Ongoing Mar 19, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Apr 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

DisplayAlert / DisplayActionSheet / DisplayPromptAsync inconsistent Async suffix
2 participants