PassKit Changes for Swift
PassKit
Added PKAddressField [struct]
Added PKAddressField.all
Added PKAddressField.email
Added PKAddressField.name
Added PKAddressField.phone
Added PKPassKitError [struct]
Added PKPassKitError.init(_nsError: NSError)
Added PKPayment
Added PKPayment.billingContact
Added PKPayment.shippingMethod
Added PKPayment.token
Added PKPaymentAuthorizationController.canMakePayments(usingNetworks: [PKPaymentNetwork]) -> Bool [class]
Added PKPaymentMethod
Added PKPaymentMethod.network
Added PKPaymentMethod.type
Added PKPaymentRequest
Added PKPaymentSummaryItem
Added PKPaymentSummaryItem.init(label: String, amount: NSDecimalNumber, type: PKPaymentSummaryItemType)
Added PKPaymentToken
Added PKShippingMethod
Added PKShippingMethod.detail
Added PKShippingType [enum]
Added PKShippingType.delivery
Added PKShippingType.shipping
Modified PKContact
Declaration | Protocols | Introduction | |
---|---|---|---|
From | class PKContact : NSObject { var name: NSPersonNameComponents? var postalAddress: CNPostalAddress? var emailAddress: String? var phoneNumber: CNPhoneNumber? var supplementarySubLocality: String? } | -- | watchOS 2.0 |
To | class PKContact : NSObject { var name: PersonNameComponents? var postalAddress: CNPostalAddress? var emailAddress: String? var phoneNumber: CNPhoneNumber? var supplementarySubLocality: String? func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool) func performSelector(inBackground aSelector: Selector, with arg: Any?) class func classForKeyedUnarchiver() -> AnyClass var classForKeyedArchiver: AnyClass? { get } func replacementObject(for archiver: NSKeyedArchiver) -> Any? class func classFallbacksForKeyedArchiver() -> [String] class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String> class func automaticallyNotifiesObservers(forKey key: String) -> Bool var observationInfo: UnsafeMutableRawPointer? func willChangeValue(forKey key: String) func didChangeValue(forKey key: String) func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String) func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?) class var accessInstanceVariablesDirectly: Bool { get } func value(forKey key: String) -> Any? func setValue(_ value: Any?, forKey key: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws func mutableArrayValue(forKey key: String) -> NSMutableArray func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet func mutableSetValue(forKey key: String) -> NSMutableSet func value(forKeyPath keyPath: String) -> Any? func setValue(_ value: Any?, forKeyPath keyPath: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet func value(forUndefinedKey key: String) -> Any? func setValue(_ value: Any?, forUndefinedKey key: String) func setNilValueForKey(_ key: String) func dictionaryWithValues(forKeys keys: [String]) -> [String : Any] func setValuesForKeys(_ keyedValues: [String : Any]) func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool func fileManager(_ fm: FileManager, willProcessPath path: String) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode]) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval) class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?) class func cancelPreviousPerformRequests(withTarget aTarget: Any) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool var autoContentAccessingProxy: Any { get } class func version() -> Int class func setVersion(_ aVersion: Int) var classForCoder: AnyClass { get } func awakeAfter(using aDecoder: NSCoder) -> Any? } extension PKContact : CVarArg { } extension PKContact : Equatable, Hashable { var hashValue: Int { get } } | CVarArg, Equatable, Hashable | watchOS 3.0 |
Modified PKContact.name
Declaration | |
---|---|
From | var name: NSPersonNameComponents? |
To | var name: PersonNameComponents? |
Modified PKEncryptionScheme.ECC_V2
Name | Declaration | |
---|---|---|
From | PKEncryptionSchemeECC_V2 | let PKEncryptionSchemeECC_V2: String |
To | ECC_V2 | static let ECC_V2: PKEncryptionScheme |
Modified PKObject
Declaration | Protocols | |
---|---|---|
From | class PKObject : NSObject { } | -- |
To | class PKObject : NSObject { func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool) func performSelector(inBackground aSelector: Selector, with arg: Any?) class func classForKeyedUnarchiver() -> AnyClass var classForKeyedArchiver: AnyClass? { get } func replacementObject(for archiver: NSKeyedArchiver) -> Any? class func classFallbacksForKeyedArchiver() -> [String] class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String> class func automaticallyNotifiesObservers(forKey key: String) -> Bool var observationInfo: UnsafeMutableRawPointer? func willChangeValue(forKey key: String) func didChangeValue(forKey key: String) func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String) func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?) class var accessInstanceVariablesDirectly: Bool { get } func value(forKey key: String) -> Any? func setValue(_ value: Any?, forKey key: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws func mutableArrayValue(forKey key: String) -> NSMutableArray func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet func mutableSetValue(forKey key: String) -> NSMutableSet func value(forKeyPath keyPath: String) -> Any? func setValue(_ value: Any?, forKeyPath keyPath: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet func value(forUndefinedKey key: String) -> Any? func setValue(_ value: Any?, forUndefinedKey key: String) func setNilValueForKey(_ key: String) func dictionaryWithValues(forKeys keys: [String]) -> [String : Any] func setValuesForKeys(_ keyedValues: [String : Any]) func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool func fileManager(_ fm: FileManager, willProcessPath path: String) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode]) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval) class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?) class func cancelPreviousPerformRequests(withTarget aTarget: Any) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool var autoContentAccessingProxy: Any { get } class func version() -> Int class func setVersion(_ aVersion: Int) var classForCoder: AnyClass { get } func awakeAfter(using aDecoder: NSCoder) -> Any? } extension PKObject : CVarArg { } extension PKObject : Equatable, Hashable { var hashValue: Int { get } } | CVarArg, Equatable, Hashable |
Modified PKPass
Declaration | |
---|---|
From | class PKPass : PKObject { init(data data: NSData, error error: NSErrorPointer) var passType: PKPassType { get } unowned(unsafe) var paymentPass: PKPaymentPass? { get } var serialNumber: String { get } var passTypeIdentifier: String { get } @NSCopying var webServiceURL: NSURL? { get } var authenticationToken: String? { get } @NSCopying var icon: UIImage { get } var localizedName: String { get } var localizedDescription: String { get } var organizationName: String { get } @NSCopying var relevantDate: NSDate? { get } var userInfo: [NSObject : AnyObject]? { get } @NSCopying var passURL: NSURL { get } var remotePass: Bool { get } var deviceName: String { get } func localizedValueForFieldKey(_ key: String) -> AnyObject? } |
To | class PKPass : PKObject { init(data data: Data, error error: NSErrorPointer) var passType: PKPassType { get } var paymentPass: PKPaymentPass? { get } var serialNumber: String { get } var passTypeIdentifier: String { get } var webServiceURL: URL? { get } var authenticationToken: String? { get } @NSCopying var icon: UIImage { get } var localizedName: String { get } var localizedDescription: String { get } var organizationName: String { get } var relevantDate: Date? { get } var userInfo: [AnyHashable : Any]? { get } var passURL: URL? { get } var isRemotePass: Bool { get } var deviceName: String { get } func localizedValue(forFieldKey key: String) -> Any? } |
Declaration | |
---|---|
From | init(data data: NSData, error error: NSErrorPointer) |
To | init(data data: Data, error error: NSErrorPointer) |
Modified PKPass.isRemotePass
Declaration | |
---|---|
From | var remotePass: Bool { get } |
To | var isRemotePass: Bool { get } |
Declaration | |
---|---|
From | func localizedValueForFieldKey(_ key: String) -> AnyObject? |
To | func localizedValue(forFieldKey key: String) -> Any? |
Modified PKPass.passURL
Declaration | |
---|---|
From | @NSCopying var passURL: NSURL { get } |
To | var passURL: URL? { get } |
Modified PKPass.paymentPass
Declaration | |
---|---|
From | unowned(unsafe) var paymentPass: PKPaymentPass? { get } |
To | var paymentPass: PKPaymentPass? { get } |
Modified PKPass.relevantDate
Declaration | |
---|---|
From | @NSCopying var relevantDate: NSDate? { get } |
To | var relevantDate: Date? { get } |
Modified PKPass.userInfo
Declaration | |
---|---|
From | var userInfo: [NSObject : AnyObject]? { get } |
To | var userInfo: [AnyHashable : Any]? { get } |
Modified PKPass.webServiceURL
Declaration | |
---|---|
From | @NSCopying var webServiceURL: NSURL? { get } |
To | var webServiceURL: URL? { get } |
Modified PKPassKitError.Code [enum]
Declaration | |
---|---|
From | enum PKPassKitErrorCode : Int { case UnknownError case InvalidDataError case UnsupportedVersionError case InvalidSignature case NotEntitledError } extension PKPassKitErrorCode : _BridgedNSError { } extension PKPassKitErrorCode : _BridgedNSError { } |
To | enum Code : Int { typealias _ErrorType = PKPassKitError case unknownError case invalidDataError case unsupportedVersionError case invalidSignature case notEntitledError } |
Modified PKPassKitError.Code.invalidDataError
Declaration | |
---|---|
From | case InvalidDataError |
To | case invalidDataError |
Modified PKPassKitError.Code.invalidSignature
Declaration | |
---|---|
From | case InvalidSignature |
To | case invalidSignature |
Modified PKPassKitError.Code.notEntitledError
Declaration | |
---|---|
From | case NotEntitledError |
To | case notEntitledError |
Modified PKPassKitError.Code.unknownError
Declaration | |
---|---|
From | case UnknownError |
To | case unknownError |
Declaration | |
---|---|
From | case UnsupportedVersionError |
To | case unsupportedVersionError |
Modified PKPassLibrary
Declaration | Protocols | |
---|---|---|
From | class PKPassLibrary : NSObject { class func isPassLibraryAvailable() -> Bool class func requestAutomaticPassPresentationSuppressionWithResponseHandler(_ responseHandler: (PKAutomaticPassPresentationSuppressionResult) -> Void) -> PKSuppressionRequestToken class func endAutomaticPassPresentationSuppressionWithRequestToken(_ requestToken: PKSuppressionRequestToken) class func isSuppressingAutomaticPassPresentation() -> Bool class func isPaymentPassActivationAvailable() -> Bool func isPaymentPassActivationAvailable() -> Bool func passes() -> [PKPass] func passWithPassTypeIdentifier(_ identifier: String, serialNumber serialNumber: String) -> PKPass? func passesOfType(_ passType: PKPassType) -> [PKPass] func remotePaymentPasses() -> [PKPaymentPass] func removePass(_ pass: PKPass) func containsPass(_ pass: PKPass) -> Bool func replacePassWithPass(_ pass: PKPass) -> Bool func addPasses(_ passes: [PKPass], withCompletionHandler completion: ((PKPassLibraryAddPassesStatus) -> Void)?) func openPaymentSetup() func canAddPaymentPassWithPrimaryAccountIdentifier(_ primaryAccountIdentifier: String) -> Bool func activatePaymentPass(_ paymentPass: PKPaymentPass, withActivationData activationData: NSData, completion completion: ((Bool, NSError) -> Void)?) func activatePaymentPass(_ paymentPass: PKPaymentPass, withActivationCode activationCode: String, completion completion: ((Bool, NSError) -> Void)?) } | -- |
To | class PKPassLibrary : NSObject { class func isPassLibraryAvailable() -> Bool class func requestAutomaticPassPresentationSuppression(responseHandler responseHandler: @escaping (PKAutomaticPassPresentationSuppressionResult) -> Swift.Void) -> PKSuppressionRequestToken class func endAutomaticPassPresentationSuppression(withRequestToken requestToken: PKSuppressionRequestToken) class func isSuppressingAutomaticPassPresentation() -> Bool class func isPaymentPassActivationAvailable() -> Bool func isPaymentPassActivationAvailable() -> Bool func passes() -> [PKPass] func pass(withPassTypeIdentifier identifier: String, serialNumber serialNumber: String) -> PKPass? func passes(of passType: PKPassType) -> [PKPass] func remotePaymentPasses() -> [PKPaymentPass] func removePass(_ pass: PKPass) func containsPass(_ pass: PKPass) -> Bool func replacePass(with pass: PKPass) -> Bool func addPasses(_ passes: [PKPass], withCompletionHandler completion: (@escaping (PKPassLibraryAddPassesStatus) -> Swift.Void)? = nil) func openPaymentSetup() func present(_ pass: PKPaymentPass) func canAddPaymentPass(withPrimaryAccountIdentifier primaryAccountIdentifier: String) -> Bool func activate(_ paymentPass: PKPaymentPass, withActivationData activationData: Data, completion completion: (@escaping (Bool, Error) -> Swift.Void)? = nil) func activate(_ paymentPass: PKPaymentPass, withActivationCode activationCode: String, completion completion: (@escaping (Bool, Error) -> Swift.Void)? = nil) func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool) func performSelector(inBackground aSelector: Selector, with arg: Any?) class func classForKeyedUnarchiver() -> AnyClass var classForKeyedArchiver: AnyClass? { get } func replacementObject(for archiver: NSKeyedArchiver) -> Any? class func classFallbacksForKeyedArchiver() -> [String] class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String> class func automaticallyNotifiesObservers(forKey key: String) -> Bool var observationInfo: UnsafeMutableRawPointer? func willChangeValue(forKey key: String) func didChangeValue(forKey key: String) func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String) func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?) class var accessInstanceVariablesDirectly: Bool { get } func value(forKey key: String) -> Any? func setValue(_ value: Any?, forKey key: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws func mutableArrayValue(forKey key: String) -> NSMutableArray func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet func mutableSetValue(forKey key: String) -> NSMutableSet func value(forKeyPath keyPath: String) -> Any? func setValue(_ value: Any?, forKeyPath keyPath: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet func value(forUndefinedKey key: String) -> Any? func setValue(_ value: Any?, forUndefinedKey key: String) func setNilValueForKey(_ key: String) func dictionaryWithValues(forKeys keys: [String]) -> [String : Any] func setValuesForKeys(_ keyedValues: [String : Any]) func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool func fileManager(_ fm: FileManager, willProcessPath path: String) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode]) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval) class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?) class func cancelPreviousPerformRequests(withTarget aTarget: Any) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool var autoContentAccessingProxy: Any { get } class func version() -> Int class func setVersion(_ aVersion: Int) var classForCoder: AnyClass { get } func awakeAfter(using aDecoder: NSCoder) -> Any? } extension PKPassLibrary : CVarArg { } extension PKPassLibrary : Equatable, Hashable { var hashValue: Int { get } } | CVarArg, Equatable, Hashable |
Declaration | |
---|---|
From | func addPasses(_ passes: [PKPass], withCompletionHandler completion: ((PKPassLibraryAddPassesStatus) -> Void)?) |
To | func addPasses(_ passes: [PKPass], withCompletionHandler completion: (@escaping (PKPassLibraryAddPassesStatus) -> Swift.Void)? = nil) |
Declaration | |
---|---|
From | func canAddPaymentPassWithPrimaryAccountIdentifier(_ primaryAccountIdentifier: String) -> Bool |
To | func canAddPaymentPass(withPrimaryAccountIdentifier primaryAccountIdentifier: String) -> Bool |
Declaration | |
---|---|
From | func passWithPassTypeIdentifier(_ identifier: String, serialNumber serialNumber: String) -> PKPass? |
To | func pass(withPassTypeIdentifier identifier: String, serialNumber serialNumber: String) -> PKPass? |
Declaration | |
---|---|
From | func passesOfType(_ passType: PKPassType) -> [PKPass] |
To | func passes(of passType: PKPassType) -> [PKPass] |
Declaration | |
---|---|
From | func replacePassWithPass(_ pass: PKPass) -> Bool |
To | func replacePass(with pass: PKPass) -> Bool |
Modified PKPassLibraryAddPassesStatus [enum]
Declaration | |
---|---|
From | enum PKPassLibraryAddPassesStatus : Int { case DidAddPasses case ShouldReviewPasses case DidCancelAddPasses } |
To | enum PKPassLibraryAddPassesStatus : Int { case didAddPasses case shouldReviewPasses case didCancelAddPasses } |
Declaration | |
---|---|
From | case DidAddPasses |
To | case didAddPasses |
Declaration | |
---|---|
From | case DidCancelAddPasses |
To | case didCancelAddPasses |
Declaration | |
---|---|
From | case ShouldReviewPasses |
To | case shouldReviewPasses |
Name | Declaration | |
---|---|---|
From | PKPassLibraryAddedPassesUserInfoKey | let PKPassLibraryAddedPassesUserInfoKey: String |
To | addedPassesUserInfoKey | static let addedPassesUserInfoKey: PKPassLibraryNotificationKey |
Name | Declaration | |
---|---|---|
From | PKPassLibraryPassTypeIdentifierUserInfoKey | let PKPassLibraryPassTypeIdentifierUserInfoKey: String |
To | passTypeIdentifierUserInfoKey | static let passTypeIdentifierUserInfoKey: PKPassLibraryNotificationKey |
Name | Declaration | |
---|---|---|
From | PKPassLibraryRemovedPassInfosUserInfoKey | let PKPassLibraryRemovedPassInfosUserInfoKey: String |
To | removedPassInfosUserInfoKey | static let removedPassInfosUserInfoKey: PKPassLibraryNotificationKey |
Name | Declaration | |
---|---|---|
From | PKPassLibraryReplacementPassesUserInfoKey | let PKPassLibraryReplacementPassesUserInfoKey: String |
To | replacementPassesUserInfoKey | static let replacementPassesUserInfoKey: PKPassLibraryNotificationKey |
Name | Declaration | |
---|---|---|
From | PKPassLibrarySerialNumberUserInfoKey | let PKPassLibrarySerialNumberUserInfoKey: String |
To | serialNumberUserInfoKey | static let serialNumberUserInfoKey: PKPassLibraryNotificationKey |
Name | Declaration | |
---|---|---|
From | PKPassLibraryDidChangeNotification | let PKPassLibraryDidChangeNotification: String |
To | PKPassLibraryDidChange | static let PKPassLibraryDidChange: PKPassLibraryNotificationName |
Name | Declaration | |
---|---|---|
From | PKPassLibraryRemotePaymentPassesDidChangeNotification | let PKPassLibraryRemotePaymentPassesDidChangeNotification: String |
To | PKPassLibraryRemotePaymentPassesDidChange | static let PKPassLibraryRemotePaymentPassesDidChange: PKPassLibraryNotificationName |
Modified PKPassType [enum]
Declaration | |
---|---|
From | enum PKPassType : UInt { case Barcode case Payment case Any } |
To | enum PKPassType : UInt { case barcode case payment case any } |
Modified PKPassType.any
Declaration | |
---|---|
From | case Any |
To | case any |
Modified PKPassType.barcode
Declaration | |
---|---|
From | case Barcode |
To | case barcode |
Modified PKPassType.payment
Declaration | |
---|---|
From | case Payment |
To | case payment |
Modified PKPaymentNetwork.amex
Name | Declaration | Introduction | |
---|---|---|---|
From | PKPaymentNetworkAmex | let PKPaymentNetworkAmex: String | watchOS 2.0 |
To | amex | static let amex: PKPaymentNetwork | watchOS 3.0 |
Modified PKPaymentNetwork.chinaUnionPay
Name | Declaration | Introduction | |
---|---|---|---|
From | PKPaymentNetworkChinaUnionPay | let PKPaymentNetworkChinaUnionPay: String | watchOS 2.2 |
To | chinaUnionPay | static let chinaUnionPay: PKPaymentNetwork | watchOS 3.0 |
Modified PKPaymentNetwork.discover
Name | Declaration | Introduction | |
---|---|---|---|
From | PKPaymentNetworkDiscover | let PKPaymentNetworkDiscover: String | watchOS 2.0 |
To | discover | static let discover: PKPaymentNetwork | watchOS 3.0 |
Modified PKPaymentNetwork.interac
Name | Declaration | Introduction | |
---|---|---|---|
From | PKPaymentNetworkInterac | let PKPaymentNetworkInterac: String | watchOS 2.2 |
To | interac | static let interac: PKPaymentNetwork | watchOS 3.0 |
Modified PKPaymentNetwork.masterCard
Name | Declaration | Introduction | |
---|---|---|---|
From | PKPaymentNetworkMasterCard | let PKPaymentNetworkMasterCard: String | watchOS 2.0 |
To | masterCard | static let masterCard: PKPaymentNetwork | watchOS 3.0 |
Modified PKPaymentNetwork.privateLabel
Name | Declaration | Introduction | |
---|---|---|---|
From | PKPaymentNetworkPrivateLabel | let PKPaymentNetworkPrivateLabel: String | watchOS 2.0 |
To | privateLabel | static let privateLabel: PKPaymentNetwork | watchOS 3.0 |
Modified PKPaymentNetwork.visa
Name | Declaration | Introduction | |
---|---|---|---|
From | PKPaymentNetworkVisa | let PKPaymentNetworkVisa: String | watchOS 2.0 |
To | visa | static let visa: PKPaymentNetwork | watchOS 3.0 |
Modified PKPaymentPass
Declaration | |
---|---|
From | class PKPaymentPass : PKPass { var primaryAccountIdentifier: String { get } var primaryAccountNumberSuffix: String { get } var deviceAccountIdentifier: String { get } var deviceAccountNumberSuffix: String { get } var activationState: PKPaymentPassActivationState { get } } |
To | class PKPaymentPass : PKPass { var primaryAccountIdentifier: String { get } var primaryAccountNumberSuffix: String { get } weak var deviceAccountIdentifier: NSString? { get } weak var deviceAccountNumberSuffix: NSString? { get } var activationState: PKPaymentPassActivationState { get } } |
Declaration | |
---|---|
From | var deviceAccountIdentifier: String { get } |
To | weak var deviceAccountIdentifier: NSString? { get } |
Declaration | |
---|---|
From | var deviceAccountNumberSuffix: String { get } |
To | weak var deviceAccountNumberSuffix: NSString? { get } |
Modified PKPaymentPassActivationState [enum]
Declaration | |
---|---|
From | enum PKPaymentPassActivationState : UInt { case Activated case RequiresActivation case Activating case Suspended case Deactivated } |
To | enum PKPaymentPassActivationState : UInt { case activated case requiresActivation case activating case suspended case deactivated } |
Declaration | |
---|---|
From | case Activated |
To | case activated |
Declaration | |
---|---|
From | case Activating |
To | case activating |
Declaration | |
---|---|
From | case Deactivated |
To | case deactivated |
Declaration | |
---|---|
From | case RequiresActivation |
To | case requiresActivation |
Declaration | |
---|---|
From | case Suspended |
To | case suspended |