rid00z/FreshMvvm

Display a prompt

Opened this issue · 5 comments

Is there a way to display a prompt using freshmvvm?
I think the method is in v4.3 on xamarin forms
https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/pop-ups

From the CoreMethods property on the FreshBasePageModel, there is a DisplayAlert and DisplayActionSheet.

The DisplayAlert or the DisplayActionSheet are diferent concepts from the prompt
They allow diferent things.

Ahh....you were referring to the DisplayPromptAsync from XF.

I use Acr.UserDialogs for prompts(and many other features of the library). I'm guessing a pull request for that change would probably be accepted.

The documentation on the link also referes to the new DisplayPromptAsync.
I was asking to see if I was missing something or if someone was already implementing.
If i can get some time off i will do a PR

If you are inside PageModel (FreshBasePageModel) you can try this

var result = await CurrentPage.DisplayPromptAsync("title", "message");