I'm using Xamarin's ActionSheet Alert function and following the instruction from official website. The sample given by website is shown as
actionSheetAlert.AddAction(UIAlertAction.Create("Item One",UIAlertActionStyle.Default, (action) => Console.WriteLine ("Item One pressed.")));
After (action) =>
, it only shows how we can add one function here, which is (action) => Console.WriteLine ("Item One pressed.")
What if I want to add more actions? Can I just use (action) => {......}
? Or can I use (action) => function1()
? Could you please show me more examples that I can do after (action) =>
?