mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-07 23:03:19 +08:00
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:
parent
9274083b24
commit
54ac2bfdf5
@ -73,7 +73,11 @@ export class Diagnostic extends IonicNativePlugin {
|
|||||||
@CordovaProperty()
|
@CordovaProperty()
|
||||||
permissionStatus: {
|
permissionStatus: {
|
||||||
GRANTED: string;
|
GRANTED: string;
|
||||||
|
/**
|
||||||
|
* @deprecated cordova.plugins.diagnostic@5.0.0 uses DENIED_ONCE to unify DENIED* statuses across iOS/Android
|
||||||
|
*/
|
||||||
DENIED: string;
|
DENIED: string;
|
||||||
|
DENIED_ONCE: string;
|
||||||
NOT_REQUESTED: string;
|
NOT_REQUESTED: string;
|
||||||
DENIED_ALWAYS: string;
|
DENIED_ALWAYS: string;
|
||||||
RESTRICTED: string;
|
RESTRICTED: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user