replace

open suspend override fun replace(registryId: String, records: List<MobileWalletCredentialRegistryRecord>): MobileWalletCredentialRegistrationResult

Publishes one desired Apple registration per presentable mdoc credential in records.

The published state replaces whatever the App Group held, including another wallet's projection - see IosIdentityDocumentProjectionState.

MobileWalletCredentialRegistrationResult.registeredEntryCount counts desired registrations written, not registrations Apple has accepted, because applying them is Swift's job.

registryId is unused: Apple's store is keyed by document identifier alone.