feat(diagnostic): add DENIED_ONCE introduced by diagnostic v5 (#3071)

cordova.plugins.diagnostic@5.0.0 introduced breaking change moving from `DENIED` to `DENIED_ONCE` and make the statuses semantically equal for iOS and Android. For backward compatibility `DENIED` is untouched in this PR but marked as deprecated
This commit is contained in:
Szymon Stasik 2019-07-01 19:18:11 +02:00 committed by Daniel Sogl
parent 9274083b24
commit 54ac2bfdf5

View File

@ -73,7 +73,11 @@ export class Diagnostic extends IonicNativePlugin {
@CordovaProperty()
permissionStatus: {
GRANTED: string;
/**
* @deprecated cordova.plugins.diagnostic@5.0.0 uses DENIED_ONCE to unify DENIED* statuses across iOS/Android
*/
DENIED: string;
DENIED_ONCE: string;
NOT_REQUESTED: string;
DENIED_ALWAYS: string;
RESTRICTED: string;