Contents

NFCPresentmentIntentAssertion

An object that signals your app’s intention to make exclusive use of the device’s contactless features.

Declaration

final class NFCPresentmentIntentAssertion

Overview

Acquire an instance of this class to prevent the system default contactless app from launching in response to a user gesture or NFC reader RF field. You do this when the person using your app expresses an active intent to perform an NFC transaction, like choosing a credential such as a payment card or transit pass. You can only acquire a NFCPresentmentIntentAssertion when your app is in the foreground state.

The presentment intent assertion expires if any of the following occur:

  • The presentment intent assertion object deinitializes.

  • Your app goes into the background.

  • 15 seconds elapse.

After the presentment intent assertion expires, you must wait through a 15-second cool-down period before you can acquire a new instance.

Topics

Acquiring a presentment intention instance

Testing presentment intention validity

See Also

Card sessions