Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IUiService.cs
1using System.Collections.ObjectModel;
2using System.Diagnostics.CodeAnalysis;
4
6{
10 [DefaultImplementation(typeof(UiService))]
11 public interface IUiService : ILoadableService
12 {
13 #region DisplayAlert
14
23 Task<bool> DisplayAlert(string Title, string Message, string? Accept = null, string? Cancel = null);
24
30 Task DisplayException(Exception Exception, string? Title = null);
31
32 #endregion
33
34 #region DisplayPrompt
35
44 Task<string?> DisplayPrompt(string Title, string Message, string? Accept, string? Cancel);
45
46 #endregion
47
48 #region Screen shots
49
54 Task<ImageSource?> TakeScreenshotAsync();
55
60 Task<ImageSource?> TakeBlurredScreenshotAsync();
61
62 #endregion
63
64 #region Navigation
65
72 Task GoToAsync(string Route, BackMethod BackMethod = BackMethod.Inherited, string? UniqueId = null);
73
81 Task GoToAsync<TArgs>(string Route, TArgs? Args, BackMethod BackMethod = BackMethod.Inherited, string? UniqueId = null) where TArgs : NavigationArgs, new();
82
87 Task GoBackAsync(bool Animate = true);
88
94 TArgs? PopLatestArgs<TArgs>()
95 where TArgs : NavigationArgs, new();
96
102 TArgs? TryGetArgs<TArgs>(string? UniqueId = null)
103 where TArgs : NavigationArgs, new();
104
110 bool TryGetArgs<TArgs>([NotNullWhen(true)] out TArgs? Args, string? UniqueId = null)
111 where TArgs : NavigationArgs, new();
112
116 Page CurrentPage { get; }
117
118 #endregion
119
120 #region Images
126 public Task<ImageSource?> ConvertSvgUriToImageSource(string svgUri);
127
128 #endregion
129 }
130}
An base class holding page specific navigation parameters.
A service that can be loaded and unloaded at will. Typically during startup and shutdown of an applic...
Service serializing and managing UI-related tasks.
Definition: IUiService.cs:12
Task< string?> DisplayPrompt(string Title, string Message, string? Accept, string? Cancel)
Prompts the user for some input.
Task DisplayException(Exception Exception, string? Title=null)
Displays an alert/message box to the user.
Task< ImageSource?> TakeBlurredScreenshotAsync()
Takes a blurred screen shot
Task GoToAsync(string Route, BackMethod BackMethod=BackMethod.Inherited, string? UniqueId=null)
Navigates the AppShell to the specified route, with page arguments to match.
Task< ImageSource?> TakeScreenshotAsync()
Takes a screen-shot.
Task GoBackAsync(bool Animate=true)
Returns to the previous page/route.
Task GoToAsync< TArgs >(string Route, TArgs? Args, BackMethod BackMethod=BackMethod.Inherited, string? UniqueId=null)
Navigates the AppShell to the specified route, with page arguments to match.
Task< ImageSource?> ConvertSvgUriToImageSource(string svgUri)
Fetches a SVG and converts it to a PNG image source.
Task< bool > DisplayAlert(string Title, string Message, string? Accept=null, string? Cancel=null)
Displays an alert/message box to the user.
BackMethod
Navigation Back Method
Definition: BackMethod.cs:7