public static void PluginLoadingFailed(PluginLoadingFailedException ex) { Debug.Assert(ex != null); var message = ex.InnerException?.Message ?? "No Message Provided"; NotifierFlyout.ShowNotification("Plugins not loaded", $"We could not load the plugins. Here's the error message:\n{message}"); }
public static async Task ShowNotification(string title, string body, TimeSpan timeout) { using (var notifierWindow = new NotifierFlyout(title, body, timeout)) await notifierWindow.ShowNotification(); }
public static void ShowOperationCanceled() => NotifierFlyout.ShowNotification("Canceled", "You canceled the task.");
public static void ShowImageCopiedConfirmation() => NotifierFlyout.ShowNotification("Image copied!", "The image has been copied to your clipboard.");
public static void CopyingFilePathFailed() { NotifierFlyout.ShowNotification("Could not copy file path :(", $"We could not copy the file path to your clipboard. Please try again!"); }
public static void ShowFilePathCopyConfirmation() => NotifierFlyout.ShowNotification("File path copied!", "The file path has been copied to your clipboard.");
public static void ShowCopyConfirmation(string text) => NotifierFlyout.ShowNotification("Link copied!", "The link has been copied to your clipboard.");
public static void CopyingFailed(string text) { NotifierFlyout.ShowNotification("Could not copy link :(", $"We could not copy the link to your image to your clipboard."); }
public static void SettingsUpdated() => NotifierFlyout.ShowNotification("Settings Updated", $"HolzShots has detected and loaded new settings.");