1using CommunityToolkit.Mvvm.ComponentModel;
2using CommunityToolkit.Mvvm.Input;
3using Microsoft.Maui.Controls.Shapes;
10 #region Private Properties
11 private bool hasBeenToSettings =
false;
15 #region Public Properties
21 private string title =
string.Empty;
27 private string description =
string.Empty;
33 private string descriptionSecondary =
string.Empty;
57 public ShowPermissionViewModel(
string? title,
string? description,
string? descriptionSecondary, Geometry? iconGeometry =
null)
59 this.Title = title ??
string.Empty;
60 this.Description = description ??
string.Empty;
61 this.DescriptionSecondary = descriptionSecondary ??
string.Empty;
72 await base.OnInitializeAsync();
74 App.AppActivated += this.App_OnActivated;
80 App.AppActivated -= this.App_OnActivated;
82 return base.OnDisposeAsync();
85 protected async
void App_OnActivated(
object? sender, EventArgs e)
89 if (this.hasBeenToSettings)
104 private async Task Close()
110 private void GoToSettings()
112 this.hasBeenToSettings =
true;
113 AppInfo.Current.ShowSettingsUI();
Base class that references services in the app.
static IPopupService PopupService
Popup service for presenting application popups.
Static class containing SVG Paths for symbols used in the app.
static readonly Geometry InfoCirclePath
Information circle