From df88354564836b289b305c86baba6211214b3fe2 Mon Sep 17 00:00:00 2001 From: Marina Ioannou Date: Fri, 16 Feb 2024 11:29:11 +0200 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 22873b7d..a30b7cb9 100644 --- a/README.md +++ b/README.md @@ -595,8 +595,8 @@ In order to use NFC for engagement, you must add the service `DefaultNfcEngageme ``` - You can enable or disable the NFC engagement in your app by calling the `EudiWallet.enable(Activity)` - and `EudiWallet.disable(Activity)` methods. + You can enable or disable the NFC engagement in your app by calling the `EudiWallet.enableNFCEngagement(Activity)` + and `EudiWallet.disableNFCEngagement(Activity)` methods. In the example below, the NFC engagement is enabled when activity is resumed and disabled when the activity is paused. @@ -608,12 +608,12 @@ In order to use NFC for engagement, you must add the service `DefaultNfcEngageme override fun onResume() { super.onResume() - EudiWallet.enable(this) + EudiWallet.enableNFCEngagement(this) } override fun onPause() { super.onPause() - EudiWallet.disable(this) + EudiWallet.disableNFCEngagement(this) } } ```