Contents

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 -> PKAddShareablePassConfiguration

Parameters

  • 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:

    shareableCredentialConfiguration

    A Pkaddshareablepassconfiguration that contains the shareable pass configuration, or nil if an error occurred.

    error

    An Nserror that contains the error, or nil if no error occurred.

See Also

Creating a pass configuration