[Proposal] Toast
See original GitHub issueDiscussed in https://github.com/CommunityToolkit/Maui/discussions/209
<div type='discussions-op-text'>Originally posted by VladislavAntonyuk November 27, 2021
- Proposed
- Prototype
- Implementation
- iOS Support
- Android Support
- macOS Support
- Windows Support
- Unit Tests
- Sample
- Documentation: Not Started
Toast
Summary
Adds a toast. It should use Native Toast on Android and Windows. All other platforms implement a default popup container with message.
Detailed Design
Toast.shared.cs
namespace CommunityToolkit.Maui.Alerts.Toast;
public class Toast: IToast
{
ToastDuration Duration { get; set; }
string Text { get; set; }
Task Dismiss();
Task Show();
public static IToast Make(string text, ToastDuration duration = ToastDuration.Short);
}
public interface IToast
{
ToastDuration Duration { get; }
bool IsShown { get; }
string Text { get; }
Task Dismiss();
Task Show();
}
public enum ToastDuration
{
Short,
Long
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
How to propose a toast
1. Plan your toast in advance · 2. Use tidy notes · 3. Use a simple three-point structure · 4. Acknowledge people who...
Read more >Propose a toast Definition & Meaning
The meaning of PROPOSE A TOAST is to wish a person future health, happiness, and success and ask others to raise their glasses...
Read more >How to Propose a Toast to Commemorate and Celebrate
By definition, proposing a toast involves wishing a person or people future success, happiness and health and asking others to raise their glasses...
Read more >PROPOSE A TOAST definition | Cambridge English Dictionary
propose a toast meaning: 1. to ask people at a formal social occasion to express their good wishes or respect for someone by…....
Read more >How to Propose a Toast
Introduce yourself briefly, if you aren't already known by everyone present. Say something about why you've gathered. Are you celebrating a successful project ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed! I changed the rule from just requiring the
proposal
tag to also checking if it’s in theNew Feature Proposals
project board. I’ll re-add theproposal
tag now that I’m done testing.Thanks Shaun! I’ll hide these comments now to minimize the noise and avoid distracting conversations here away from
Toast
👍@brminnick Did the bot fail in reopening this one?