PKAddIdentityDocumentMetadata
The object for specifying the metadata necessary to provision identity documents.
Declaration
class PKAddIdentityDocumentMetadataOverview
After creating a PKAddIdentityDocumentMetadata object, you can verify whether an identity document already exists for the specified issuingCountryCode and documentType.
The following example shows how to create a metadata object:
let previewIdentityPass = PKAddPassMetadataPreview(
passThumbnail: passThumbnail,
localizedDescription: localizedDescription
)
let identityMetadata = PKAddIdentityDocumentMetadata(
provisioningCredentialIdentifier: credentialIdentifier,
sharingInstanceIdentifier: sharingInstanceIdentifier,
cardTemplateIdentifier: templateIdentifier,
issuingCountryCode: "US",
documentType: .mDL,
previewIdentityPass: previewIdentityPass
)Topics
Creating metadata for identity documents
Checking identity document types
Previewing identity document metadata
See Also
Identity passes and authorization
Requesting identity data from a Wallet passConfiguring your environment for the Verify with Wallet APIVerifying Wallet identity requestsPKIdentityPhotoIDDescriptorPKIdentityAnyOfDescriptorPKIdentityDriversLicenseDescriptorPKAddIdentityDocumentConfigurationPKAddIdentityDocumentTypeJPKIPassContentsPKAddIdentityDocumentConfigurationPKAddPassMetadataPreviewPKIdentityDocumentMetadataPKIdentityNationalIDCardDescriptorPKJapanIndividualNumberCardMetadata