ApplePassKit class

This class allows you to access native PassKits functionality.

Adding payment passes requires a special entitlement issued by Apple. Your app must include this entitlement before this class can be instantiated. For more information on requesting this entitlement, see the Card Issuers section at developer.apple.com/apple-pay/.

Constructors

ApplePassKit()

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPass(Uint8List pass) Future<void>
Adding payment passes requires a special entitlement issued by Apple. If your app does not include this entitlement, this method returns nil. For more information on requesting this entitlement, see the Card Issuers section on developer.apple.com/apple-pay/.
addPasses(List<Uint8List> passes) Future<void>
Adding payment passes requires a special entitlement issued by Apple. If your app does not include this entitlement, this method returns nil. For more information on requesting this entitlement, see the Card Issuers section on developer.apple.com/apple-pay/.
addPassesWithoutUI(List<Uint8List> passes) Future<PKPassLibraryAddPassesStatus>
Presents a user interface for adding multiple passes at once.
canAddPasses() Future<bool>
Returns a Boolean value that indicates whether the device supports adding passes.
containsPass(Uint8List pass) Future<bool>
Returns a Boolean value that indicates whether the user’s pass library contains the specified pass.
isPassLibraryAvailable() Future<bool>
Returns a Boolean value that indicates whether the pass library is available. This method exists because the pass library may be unavailable even if the PKPassLibrary class exists.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
passes() Future<List<ApplePkPass>>
Returns the passes in the user’s pass library that the app can access. Your app only has access to certain passes according to its entitlements. PassKit doesn’t return passes that your app can’t access.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited