PassKit Changes for Objective-C
PassKit
PKAddPassButton.h (Added)
PKAddPassesViewController.h
Declaration | |
---|---|
From | - (instancetype)initWithPass:(id)pass |
To | - (instancetype _Nonnull)initWithPass:(PKPass * _Nonnull)pass |
Declaration | |
---|---|
From | - (instancetype)initWithPasses:(NSArray *)passes |
To | - (instancetype _Nonnull)initWithPasses:(NSArray<PKPass *> * _Nonnull)passes |
PKAddPaymentPassViewController.h (Added)
Added PKAddPaymentPassRequest
Added PKAddPaymentPassError
PKConstants.h (Added)
Modified PKPaymentNetworkAmex
Header | |
---|---|
From | PassKit/PKPaymentRequest.h |
To | PassKit/PKConstants.h |
Modified PKPaymentNetworkMasterCard
Header | |
---|---|
From | PassKit/PKPaymentRequest.h |
To | PassKit/PKConstants.h |
Modified PKPaymentNetworkVisa
Header | |
---|---|
From | PassKit/PKPaymentRequest.h |
To | PassKit/PKConstants.h |
PKContact.h (Added)
Added PKContact
Added PKContact.emailAddress
Added PKContact.name
Added PKContact.phoneNumber
Added PKContact.postalAddress
PKPass.h
Added PKPass.deviceName
Added PKPass.remotePass
PKPassLibrary.h
Deprecation | |
---|---|
From | -- |
To | iOS 9.0 |
Declaration | |
---|---|
From | - (void)addPasses:(NSArray *)passes withCompletionHandler:(void (^)(PKPassLibraryAddPassesStatus status))completion |
To | - (void)addPasses:(NSArray<PKPass *> * _Nonnull)passes withCompletionHandler:(void (^ _Nullable)(PKPassLibraryAddPassesStatus status))completion |
Deprecation | |
---|---|
From | -- |
To | iOS 9.0 |
Modified -[PKPassLibrary passes]
Declaration | |
---|---|
From | - (NSArray *)passes |
To | - (NSArray<PKPass *> * _Nonnull)passes |
Modified -[PKPassLibrary passesOfType:]
Declaration | |
---|---|
From | - (NSArray *)passesOfType:(PKPassType)passType |
To | - (NSArray<PKPass *> * _Nonnull)passesOfType:(PKPassType)passType |
PKPayment.h
Added PKPayment.billingContact
Modified PKPayment.billingAddress
Deprecation | |
---|---|
From | -- |
To | iOS 9.0 |
Modified PKPayment.shippingAddress
Deprecation | |
---|---|
From | -- |
To | iOS 9.0 |
PKPaymentAuthorizationViewController.h
Declaration | |
---|---|
From | + (BOOL)canMakePaymentsUsingNetworks:(NSArray *)supportedNetworks |
To | + (BOOL)canMakePaymentsUsingNetworks:(NSArray<NSString *> * _Nonnull)supportedNetworks |
Declaration | Deprecation | |
---|---|---|
From | - (void)paymentAuthorizationViewController:(PKPaymentAuthorizationViewController *)controller didSelectShippingAddress:(ABRecordRef)address completion:(void (^)(PKPaymentAuthorizationStatus status, NSArray *shippingMethods, NSArray *summaryItems))completion | -- |
To | - (void)paymentAuthorizationViewController:(PKPaymentAuthorizationViewController * _Nonnull)controller didSelectShippingAddress:(ABRecordRef _Nonnull)address completion:(void (^ _Nonnull)(PKPaymentAuthorizationStatus status, NSArray<PKShippingMethod *> * _Nonnull shippingMethods, NSArray<PKPaymentSummaryItem *> * _Nonnull summaryItems))completion | iOS 9.0 |
Declaration | |
---|---|
From | - (void)paymentAuthorizationViewController:(PKPaymentAuthorizationViewController *)controller didSelectShippingMethod:(PKShippingMethod *)shippingMethod completion:(void (^)(PKPaymentAuthorizationStatus status, NSArray *summaryItems))completion |
To | - (void)paymentAuthorizationViewController:(PKPaymentAuthorizationViewController * _Nonnull)controller didSelectShippingMethod:(PKShippingMethod * _Nonnull)shippingMethod completion:(void (^ _Nonnull)(PKPaymentAuthorizationStatus status, NSArray<PKPaymentSummaryItem *> * _Nonnull summaryItems))completion |
PKPaymentButton.h
PKPaymentMethod.h (Added)
Added PKPaymentMethod
Added PKPaymentMethod.network
Added PKPaymentMethod.type
Added PKPaymentMethodType
Added PKPaymentMethodTypeDebit
Added PKPaymentMethodTypeStore
PKPaymentRequest.h
Added PKPaymentSummaryItemType
Modified PKPaymentRequest.billingAddress
Deprecation | |
---|---|
From | -- |
To | iOS 9.0 |
Modified PKPaymentRequest.paymentSummaryItems
Declaration | |
---|---|
From | @property(nonatomic, copy) NSArray *paymentSummaryItems |
To | @property(nonatomic, copy, nonnull) NSArray<PKPaymentSummaryItem *> *paymentSummaryItems |
Modified PKPaymentRequest.shippingAddress
Deprecation | |
---|---|
From | -- |
To | iOS 9.0 |
Modified PKPaymentRequest.shippingMethods
Declaration | |
---|---|
From | @property(nonatomic, copy) NSArray *shippingMethods |
To | @property(nonatomic, copy, nullable) NSArray<PKShippingMethod *> *shippingMethods |
Modified PKPaymentRequest.supportedNetworks
Declaration | |
---|---|
From | @property(nonatomic, copy) NSArray *supportedNetworks |
To | @property(nonatomic, copy, nonnull) NSArray<NSString *> *supportedNetworks |
Modified PKPaymentNetworkAmex
Header | |
---|---|
From | PassKit/PKPaymentRequest.h |
To | PassKit/PKConstants.h |
Modified PKPaymentNetworkMasterCard
Header | |
---|---|
From | PassKit/PKPaymentRequest.h |
To | PassKit/PKConstants.h |
Modified PKPaymentNetworkVisa
Header | |
---|---|
From | PassKit/PKPaymentRequest.h |
To | PassKit/PKConstants.h |
PKPaymentToken.h
Modified PKPaymentToken.paymentInstrumentName
Deprecation | |
---|---|
From | -- |
To | iOS 9.0 |
Modified PKPaymentToken.paymentNetwork
Deprecation | |
---|---|
From | -- |
To | iOS 9.0 |