PassKitWebClient class
This class allows you to update a PkPass the latest version, if the pass allows it.
Docs:
https://developer.apple.com/documentation/walletpasses/send_an_updated_pass
Constructors
- PassKitWebClient({Client? client})
-
If a
client
is passed to the constructor it will be used, otherwise a default instance will be created. This is useful for testing, or for using other implementations likehttps://pub.dev/packages/cupertino_http
orhttps://pub.dev/packages/cronet_http
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getLatestVersion(
PkPass pass, {DateTime? modifiedSince}) → Future< PkPass?> - Loads the latest version for the given pass. Throws, if the pass doesn't support being updated. To check whether a pass supports being updated, check whether PkPass.isWebServiceAvailable returns true.
-
getListOfUpdatablePasses(
PkPass pass, {required String deviceLibraryIdentifier, required String? previousLastUpdated}) → Future< SerialNumbers?> - Send the serial numbers for updated passes to a device.
-
logMessages(
PkPass pass, List< String> messages) → Future<void> - Record a message on the server.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
personalize(
PkPass pass, {required PersonalizationDictionary personalization}) → Future< Uint8List?> - Return a Personalized Pass Create and sign a personalized pass, and send it to a device.
-
setupNotifications(
PkPass pass, {required String deviceLibraryIdentifier, required String pushToken}) → Future< void> - Set up change notifications for a pass on a device.
-
stopNotifications(
PkPass pass, {required String deviceLibraryIdentifier}) → Future< void> - Unregister a Pass for Update Notifications Stop sending update notifications for a pass on a device.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited