passkit library
Classes
- Barcode
- Information about a pass’s barcode.
- Beacon
- Information about a location beacon. Available in iOS 7.0.
- FieldDict
- Location
- Information about a location.
- Nfc
- Information about the NFC payload passed to an Apple Pay terminal.
- OrderAddress
- The physical address for an order.
- OrderApplication
- The details of an app in the App Store.
- OrderBarcode
- Information about a pass’s barcode.
- OrderCurrencyAmount
- OrderCustomer
- The details of the order’s customer.
- OrderData
- OrderIdentifiers
- OrderLineItem
- OrderLocation
- The details of a pickup order.
- OrderMerchant
- The merchant associated with the order.
- OrderPayment
- OrderPaymentMethod
- OrderPickupFulfillment
- The details of a pickup order.
- OrderProvider
- OrderReturn
- The details of a return order.
- OrderReturnInfo
- OrderShippingFulfillment
- OrderWebClient
- This class allows you to update a PkOrder the latest version, if the order allows it.
- PassData
- PassKitWebClient
- This class allows you to update a PkPass the latest version, if the pass allows it.
- PassStructure
- Keys that define the structure of the pass. These keys are used for all pass styles and partition the fields into the various parts of the pass.
- PaymentSummaryItems
- A breakdown of the total payment.
- PaymentTransaction
- The details about a payment transaction.
- Personalization
- Docs: https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/PassKit_PG/PassPersonalization.html#//apple_ref/doc/uid/TP40012195-CH12-SW2
- PersonalizationDictionary
- PersonalizationDictionary An object that contains the information you use to personalize a pass. Docs: https://developer.apple.com/documentation/walletpasses/personalizationdictionary
- PersonalizationDictionaryRequiredPersonalizationInfo
- An object that contains the user-entered information for a personalized pass.
- PkImage
- PkOrder
- PkPass
- https://developer.apple.com/library/archive/documentation/UserExperience/Reference/PassKit_Bundle/Chapters/Introduction.html https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/PassKit_PG/index.html#//apple_ref/doc/uid/TP40012195
- Semantics
- https://developer.apple.com/documentation/walletpasses/pass/supporting_semantic_tags_in_wallet_passes
- SemanticTagTypeCurrencyAmount
- An object that represents an amount of money and type of currency.
- SemanticTagTypeLocation
- An object that represents the coordinates of a location.
- SemanticTagTypePersonNameComponents
- An object that represents the coordinates of a location.
- SemanticTagTypeSeat
- An object that represents the identification of a seat for a transit journey or an event.
- SemanticTagTypeWifiNetwork
- An object that contains information required to connect to a WiFi network.
- SerialNumbers
- ShippingFulfillmentRecipient
Enums
- DataDetectorTypes
- DateStyle
- EventType
- NumberStyle
- https://developer.apple.com/documentation/foundation/numberformatter/style
- OrderBarcodeType
- OrderChangeNotification
- OrderShippingFulfillmentStatus
- OrderShippingFulfillmentType
- OrderStatus
- PassType
- PaymentTransactionStatus
- PaymentTransactionType
- PickupFulfillmentStatus
- PkPassBarcodeType
- PkTextAlignment
- RequiredPersonalizationFields
- TransitType
Properties
- wwdrG4 → X509
-
This is the content of https://www.apple.com/certificateauthority/AppleWWDRCAG4.cer
final
Functions
-
colorToString(
Color? color) → String? -
createEventWithThumbnail(
{required PkImage logo, required PkImage icon, PkImage? background, PkImage? thumbnail, required String description, required String organizationName, required String serialNumber, List< int> ? associatedStoreIdentifiers, required Color backgroundColor, required Color foregroundColor, required Color labelColor, required Barcode barcode, required List<Location> locations, Uri? webServiceUri, required String logoText, DateTime? expirationDate, DateTime? relevantTime, required Semantics? semantics, required List<FieldDict> ? primaryFields, required List<FieldDict> ? secondaryFields, required List<FieldDict> ? auxiliaryFields}) → PkPass -
Creates an opinionated PkPass for an event.
In order to further customize an event pass, use the various
copyWith
methods available on the PkPass object and its various properties. - Creates all three logo scales for the icon. The data must be a common image format. If you have localized images, you'll need to call this for every language.
-
createIcon(
Uint8List data) → PkImage - Creates all three image scales for the icon. The data must be a common image format. If you have localized images, you'll need to call this for every language.
-
createLogo(
Uint8List data) → PkImage - Creates all three logo scales for the icon. The data must be a common image format. If you have localized images, you'll need to call this for every language.
-
parseColor(
String? color) → Color?