donationIdentifier(_:)
Creates a predicate that matches a single, previous donation.
Declaration
static func donationIdentifier(_ identifier: IntentDonationIdentifier) -> IntentDonationMatchingPredicateParameters
- identifier:
A donation identifier you received after donating an app intent.
Return Value
A predicate that matches the specified donation.
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 only the donation you specified.