question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Discussed 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:closed
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
brminnickcommented, Feb 10, 2022

Fixed! I changed the rule from just requiring the proposal tag to also checking if it’s in the New Feature Proposals project board. I’ll re-add the proposal 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 👍

1reaction
bijingtoncommented, Feb 10, 2022

@brminnick Did the bot fail in reopening this one?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found