_SecureElementCredential_SwiftUI · IOS API REFERENCE
CredentialTransaction.Configuration
class · iOS 18.1+ · SDK 27.1
class Configuration
An object that provides configuration information for a transaction that the client intends to perform.
In SwiftUI apps, you fetch a `Configuration` for use in calling the <doc://com.apple.documentation/documentation/SwiftUI/View/transactionTask(_:action:)> view modifier to perform wired transactions and card emulation. Inside the task closure, call ``invalidate()`` on the configuration when you finish your transaction work.
Members (1)
method · iOS 18.1+
invalidate
TypeScript
invalidate(): Promise<void>
Swift declaration
func invalidate() async throws
Invalidates the configuration and transitions the underlying session state to management.
Call `invalidate()` in the closure passed to <doc://com.apple.documentation/documentation/SwiftUI/View/transactionTask(_:action:)> when you complete your wired transaction or card emulation. Your app is responsible for invalidating any wired or card emulation state by calling this method.