Contents

donationIdentifiers(_:)

Creates a predicate that matches one or more previous donations.

Declaration

static func donationIdentifiers(_ identifiers: [IntentDonationIdentifier]) -> IntentDonationMatchingPredicate

Parameters

  • identifiers:

    An array of donation identifiers you received after donating app intents.

Return Value

A predicate that matches the specified donations.

Discussion

When you donate an app intent using the methods of IntentDonationManager, the method returns a unique identifier for that donation. Use this method to create a predicate that matches all of the donations you specified.