The properties of a transit pass.
SDKs
- iOS 11.3+
- Mac Catalyst 13.0+
- watchOS 4.3+
Framework
- Pass
Kit (Apple Pay and Wallet)
Declaration
class PKTransitPassProperties : NSObject
The properties of a transit pass.
SDKs
Framework
class PKTransitPassProperties : NSObject
init?(for: PKPass)
Instantiates a transit pass properties object that contains the properties supported in the specified pass.
var expiration Date: Date?
The date that the transit card expires.
var is Blacklisted: Bool
A Boolean value that indicates whether the transit pass issuer disabled the pass.
var is In Station: Bool
A Boolean value that indicates whether the transit pass has tapped in at a station and has not tapped out.
var transit Balance: NSDecimal Number
The current usable stored value on the transit card.
var transit Balance Currency Code: String
The currency code associated with the balance on the pass.
class PKPass
An object that represents a single pass.
class PKPass Library
Provides an interface to the user’s library of passes.
class PKSuica Pass Properties
The properties of a Suica pass.
class PKObject
An opaque type that acts as the superclass for the PKPass
class.
Allow the system to offer Wallet passes to users intelligently by adding machine-readable metadata.