acquire()
Acquire a presentment intent assertion instance from the system.
Declaration
static func acquire() async throws -> NFCPresentmentIntentAssertionReturn Value
A presentment intent assertion instance you use to prevent the default contactless app from launching.
Discussion
The returned object remains valid until any of the following occur:
Your app goes into the background.
The maximum presentment intent assertion duration expires.
The object deinitializes.
If the system can’t create a presentment intent assertion object, this method throws an error of type NFCPresentmentIntentAssertion.Error.