From 2094dfd22e7e59f6d8c1cfc76b268691c32d088f Mon Sep 17 00:00:00 2001 From: wux Date: Thu, 29 Nov 2018 11:15:39 +0800 Subject: [PATCH] modify 'Usage' --- readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 58fcaed..df79ff1 100644 --- a/readme.md +++ b/readme.md @@ -23,11 +23,11 @@ You can read more about it on [Android official website](https://source.android. ```javascript - cordova.exec(function success(signature){ - //Check signature - }, function failure(error){ - //alert("Something went wrong"); - }, "ReadAppSignature", "getAppSignature", []); + cordova.plugins.ReadAppSignature.getAppSignature(function(signature){ + console.debug("signature: %s", signature); + }, function(error){ + console.debug("signature error: %s", JSON.stringify(error)); + }); ```