apache / cordova-plugin-dialogs

Apache Cordova Dialogs Plugin
https://cordova.apache.org/
Apache License 2.0
288 stars 351 forks source link

feature (GH-128) ios/android: enable programmatic dismissal of open dialogs. Resolves #128. #148

Closed dpa99c closed 3 years ago

dpa99c commented 3 years ago

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:

Both functions take successCallback and errorCallback arguments:

Testing

Checklist

dpa99c commented 3 years ago

Travis CI browser platform tests are failing for some reason but I don't think it's related to changes made by this PR

timbru31 commented 3 years ago

Yeah we've got an issue in paramedic that causes the failure.