Skip to content

Commit d889d6c

Browse files
authored
Update README.md (#51)
1 parent b82c46f commit d889d6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/host-card-emulation/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,12 @@ This module provides a uniform low-level HCE API for both mobile platforms.
189189
190190
If you need to utilize `NFCPresentmentIntentAssertion` for enhanced user experience, call:
191191
```typescript
192-
NativeHCEModule.acquireExclusiveNFC();
192+
await NativeHCEModule.acquireExclusiveNFC();
193193
```
194194
This function will acquire an exclusive NFC access for 15 seconds. On system services or other applications will be able to interfere with NFC during that period. For example, the NFC background tag reading will be disabled so it would not generate any distracting notifications.
195195
196+
While both session and exclusive NFC access are active, you will receive `readerDetected` events even when the HCE emulation is not started at the time (without any explicit UI being displayed by the system). You can then make a call to `startHCE` to initiate the interaction automatically, without needing the user to click anything beforehand.
197+
196198
This function will throw an exception if:
197199
* the presentment intent assertion was already acquired and is still active;
198200
* you are in the cooldown period where you are not allowed to acquire the presentment intent assertion (cooldown is 15 seconds after the previous assertion had expired);

0 commit comments

Comments
 (0)