Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IToastService.cs
1using System;
2using System.Threading.Tasks;
3using Microsoft.Maui.Controls;
5
7{
11 [DefaultImplementation(typeof(ToastService))]
12 public interface IToastService
13 {
19 Task ShowAsync(View Toast, ToastOptions? Options = null);
20
26 Task ShowAsync<TToast>(ToastOptions? Options = null) where TToast : View;
27
31 Task HideAsync();
32
36 bool HasActiveToast { get; }
37
41 event EventHandler? ToastChanged;
42 }
43}
Options controlling toast presentation.
Definition: ToastOptions.cs:9
Service for presenting transient toast notifications.
EventHandler? ToastChanged
Event raised whenever the active toast changes.
bool HasActiveToast
Returns true if a toast is currently presented.
Task ShowAsync< TToast >(ToastOptions? Options=null)
Shows a toast view resolved from dependency injection.
Task HideAsync()
Hides the currently active toast, if any.
Task ShowAsync(View Toast, ToastOptions? Options=null)
Shows a toast view instance.