public UserPromptResult DisplayUserPrompt(string title, string message, UserPromptType promptType) { UserPromptResult result = UserPromptResult.NONE; if (mDisplayUserPrompt != null) { result = mDisplayUserPrompt(title, message, promptType); } return(result); }
private async void AddQuickNote(Contact contact) { UserPromptConfig prompt = new UserPromptConfig { Caption = "Add Contact Note", LabelText = "Contact Note", Message = "Add a note for this contact" }; UserPromptResult promptResult = await UserNotifier.ShowPromptAsync(prompt); if (!promptResult.Cancelled) { contact.Notes += Environment.NewLine + promptResult.InputText; await _repository.SaveContactAsync(contact, updateEvent : ModelUpdateEvent.Updated); } }