Adjustable timing - Xamarin

In Xamarin, the SnackBar view from the Xamarin.CommunityToolkit is often used to display temporary messages. The display duration might be too short for people to read or hear the message.

When using SnackBar, set the Duration to Int32.MaxValue. Or, use DisplayAlert method to show an alert instead.

Also make sure that the use of time limits, e.g. by using Timer, can be extended.

var result = await page.DisplaySnackBarAsync("Appt", "Close", async () =>
    { /* Action */ },
    Int32.MaxValue
);