Enables programmatic dismissal of currently open dialogs.
Example use case is where a dialog is opened but the context for the dialog changes in real-time so the dialog is no longer relevant.
Resolves #128 and supersedes #79.
Description
Two new plugin API methods have been added:
dismissPrevious() - dismisses the dialog that was most recently opened
Platforms affected
iOS and Android
Motivation and Context
Enables programmatic dismissal of currently open dialogs. Example use case is where a dialog is opened but the context for the dialog changes in real-time so the dialog is no longer relevant.
Resolves #128 and supersedes #79.
Description
Two new plugin API methods have been added:
dismissPrevious()
- dismisses the dialog that was most recently openeddismissAll()
- dismisses all open dialogsBoth functions take
successCallback
anderrorCallback
arguments:successCallback
is invoked when one or more previously opened dialogs has been dismissederrorCallback
is invoked if no previously opened dialogs exist to dismissTesting
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)