public void OnMessageTwoButtonDialog() { AGAlertDialog.ShowMessageDialog("Two Buttons", "This dialog has positive and negative button", "Ok", () => AGUIMisc.ShowToast("Positive button Click"), "No!", () => AGUIMisc.ShowToast("Negative button Click"), () => AGUIMisc.ShowToast("Dismissed"), AGDialogTheme.Dark); }
public void OnShowDialogMultiChooseItem() { bool[] initiallyCheckedItems = { false, true, false }; // second item is selected when dialog is shown AGAlertDialog.ShowMultiItemChoiceDialog("Choose color", Colors, initiallyCheckedItems, (colorIndex, isChecked) => AGUIMisc.ShowToast(Colors[colorIndex] + " selected? " + isChecked), "OK", () => AGUIMisc.ShowToast("OK!"), AGDialogTheme.Light); }
public void OnShowDialogSingleChooseItem() { const int defaultSelectedItemIndex = 1; AGAlertDialog.ShowSingleItemChoiceDialog("Choose color", Colors, defaultSelectedItemIndex, colorIndex => AGUIMisc.ShowToast(Colors[colorIndex] + " selected"), "OK", () => AGUIMisc.ShowToast("OK!"), AGDialogTheme.Dark); }
public void OnMessageThreeButtonDialog() { AGAlertDialog.ShowMessageDialog("Three Buttons", "This dialog has positive, negative and neutral buttons button", "Ok", () => AGUIMisc.ShowToast("Positive button Click"), "No!", () => AGUIMisc.ShowToast("Negative button Click"), "Maybe!", () => AGUIMisc.ShowToast("Neutral button Click"), () => AGUIMisc.ShowToast("Dismissed"), AGDialogTheme.Light); }
public void OnShowDialogChooseItem() { AGAlertDialog.ShowChooserDialog("Choose color", Colors, colorIndex => AGUIMisc.ShowToast(Colors[colorIndex] + " selected"), AGDialogTheme.Light); }
public void OnMessageSingleButtonDialog() { AGAlertDialog.ShowMessageDialog("Single Button", "This dialog has only positive button", "Ok", () => AGUIMisc.ShowToast("Positive button Click"), () => AGUIMisc.ShowToast("Dismissed"), AGDialogTheme.Dark); }