2using System.Diagnostics;
12 private bool isDisposed;
25 GC.SuppressFinalize(
this);
32 protected virtual void Dispose(
bool Disposing)
37 this.isDisposed =
true;
56 string? DeviceId = SecureStorage.GetAsync(
"DeviceIdentifier").Result;
57 if (!
string.IsNullOrEmpty(DeviceId))
60 string NewId = Guid.NewGuid().ToString();
61 SecureStorage.SetAsync(
"DeviceIdentifier", NewId).Wait();
68 App.SendAlertAsync(
"Unable to get or store device ID: " + ex.Message,
"text/plain").Wait();
96 return Task.CompletedTask;
100 public void ShareImage(
byte[] PngFile,
string Message,
string Title,
string FileName)
104 string CachePath = FileSystem.CacheDirectory;
105 if (!Directory.Exists(CachePath))
106 Directory.CreateDirectory(CachePath);
108 string FullPath = Path.Combine(CachePath, FileName);
109 File.WriteAllBytes(FullPath, PngFile);
111 ShareFileRequest Request =
new()
114 File =
new ShareFile(FullPath,
"image/png")
117 MainThread.BeginInvokeOnMainThread(async () => await Share.Default.RequestAsync(Request));
132 public Task<bool>
AuthenticateUserFingerprint(
string Title,
string? Subtitle,
string Description,
string Cancel, CancellationToken? CancellationToken)
134 return Task.FromResult(
false);
143 Token =
string.Empty,
145 Service = PushMessagingService.Firebase
151 #region Keyboard (No-op on Windows desktop)
152 public event EventHandler<KeyboardSizeMessage>?
KeyboardShown;
163 #region Notifications (No-op placeholders)
164 public void ShowMessageNotification(
string Title,
string MessageBody, IDictionary<string, string> Data) { }
165 public void ShowIdentitiesNotification(
string Title,
string MessageBody, IDictionary<string, string> Data) { }
166 public void ShowPetitionNotification(
string Title,
string MessageBody, IDictionary<string, string> Data) { }
167 public void ShowContractsNotification(
string Title,
string MessageBody, IDictionary<string, string> Data) { }
168 public void ShowEDalerNotification(
string Title,
string MessageBody, IDictionary<string, string> Data) { }
169 public void ShowTokenNotification(
string Title,
string MessageBody, IDictionary<string, string> Data) { }
170 public void ShowProvisioningNotification(
string Title,
string MessageBody, IDictionary<string, string> Data) { }
176 return new Thickness(0,16,0,0);
Represents an instance of the Neuro-Access app.
Base class that references services in the app.
static ILogService LogService
Log service.
BiometricMethod
Enum representing the device biometric method for authentication.
ClientType
Type of client requesting notification.