1using System.Collections.ObjectModel;
2using System.Diagnostics.CodeAnalysis;
10 [DefaultImplementation(typeof(UiService))]
23 Task<bool>
DisplayAlert(
string Title,
string Message,
string? Accept =
null,
string? Cancel =
null);
44 Task<string?>
DisplayPrompt(
string Title,
string Message,
string? Accept,
string? Cancel);
94 TArgs? PopLatestArgs<TArgs>()
102 TArgs? TryGetArgs<TArgs>(
string? UniqueId = null)
110 bool TryGetArgs<TArgs>([NotNullWhen(true)] out TArgs? Args,
string? UniqueId = null)
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.
Task< string?> DisplayPrompt(string Title, string Message, string? Accept, string? Cancel)
Prompts the user for some input.
Page CurrentPage
Current page
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