forPassMetaData(_:provisioningPolicyIdentifier:action:completion:)
Creates and error checks a new shareable pass-configuration object.
Declaration
class func forPassMetaData(_ passMetadata: [PKShareablePassMetadata], provisioningPolicyIdentifier: String, action: PKAddShareablePassConfigurationPrimaryAction, completion: @escaping @Sendable (PKAddShareablePassConfiguration?, (any Error)?) -> Void)class func forPassMetaData(_ passMetadata: [PKShareablePassMetadata], provisioningPolicyIdentifier: String, action: PKAddShareablePassConfigurationPrimaryAction) async throws -> PKAddShareablePassConfigurationParameters
- passMetadata:
- provisioningPolicyIdentifier:
- action:
The action that the system performs with the shareable pass.
- completion:
A completion handler that returns the shareable pass configuration or an error. This handler takes the following parameters:
shareableCredentialConfigurationA Pkaddshareablepassconfiguration that contains the shareable pass configuration, or
nilif an error occurred.errorAn Nserror that contains the error, or
nilif no error occurred.