1using System.Collections.ObjectModel;
2using System.Diagnostics.CodeAnalysis;
12 [DefaultImplementation(typeof(UiService))]
25 Task<bool>
DisplayAlert(
string Title,
string Message,
string? Accept =
null,
string? Cancel =
null);
46 Task<string?>
DisplayPrompt(
string Title,
string Message,
string? Accept,
string? Cancel);
96 TArgs? PopLatestArgs<TArgs>()
104 TArgs? TryGetArgs<TArgs>(
string? UniqueId = null)
112 bool TryGetArgs<TArgs>([NotNullWhen(true)] out TArgs? Args,
string? UniqueId = null)
145 Task PushAsync<TPage, TViewModel>(TPage page, TViewModel viewModel)
155 Task PushAsync<TPage, TViewModel>(TPage page)
165 Task PushAsync<TPage, TViewModel>(TViewModel viewModel)
173 Task PushAsync<TPage>()
180 Task PushAsync<TPage>(TPage page)
190 Task<TReturn?> PushAsync<TPage, TViewModel, TReturn>()
203 Task<TReturn?> PushAsync<TPage, TViewModel, TReturn>(TPage page, TViewModel viewModel)
215 Task<TReturn?> PushAsync<TPage, TViewModel, TReturn>(TPage page)
227 Task<TReturn?> PushAsync<TPage, TViewModel, TReturn>(TViewModel viewModel)
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.
Task PushAsync< TPage, TViewModel >()
Pushes a popup onto the current view
Task PopAsync()
Closes the current popup.
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.
ReadOnlyCollection< PopupPage?> PopupStack
The current stack of popup pages.
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