Rg.plugins.popup: Page await for the popup to pop.

Created on 21 Jun 2018  路  3Comments  路  Source: rotorgames/Rg.Plugins.Popup

Is there a way to make the parent page await for the pop of the popup like a regular DisplayAlert popup?

I want to do a custom login success popup, it shows fine but the code of the page keeps running instead of awaiting for the popup to close. Is there a easy and clean way to do this without a messaging center or something like that?

All 3 comments

you could make a task completion source in the child view and await it from the parent. essentially create the view, in the child constructor generate the task completion source, then whenever you call a dismiss (or in the ondisappearing), set the completion source result.

yes there is an issue for that. search for how to return value from popup page. Owner of the library explains it very well with some code there.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Phenek picture Phenek  路  6Comments

genilsonmm picture genilsonmm  路  3Comments

Nessitro picture Nessitro  路  5Comments

VladislavAntonyuk picture VladislavAntonyuk  路  3Comments

luis-barreira picture luis-barreira  路  5Comments