Skip to content

Instantly share code, notes, and snippets.

@JoeM-RP
Created August 15, 2018 03:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
private async Task ShowActionSheet()
{
var response = await Interactions.Actions.Handle(new ActionSheetArgs("Actions", new string[] { "Action1", "Action2" }));
// TODO: Like with the Error Dialog, we want to perform different actions based on the user selection
switch (response)
{
case ("Action1"):
case ("Action2"):
default:
var alert = await Interactions.Alerts.Handle(new AlertArgs("I did it!", $"Selected {response}"));
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment