Example #1
0
        private async Task ShowActionSheet()
        {
            var actionSheet = new ActionSheet <int>()
            {
                Message = "Message",
                Title   = "Title"
            };

            actionSheet.AddOption("Option1", 1);
            actionSheet.AddOption("Option2", 2);
            actionSheet.AddOption("Option3", 3);
            actionSheet.AddCancel("Cancel");
            var result = await dialogsService.ShowActionSheet(actionSheet);

            if (result != default)
            {
                dialogsService.Toast(result.ToString());
            }
        }