PPRetailDeviceUpdate Class Reference
| Inherits from | PPRetailObject : NSObject |
|---|---|
| Declared in | PPRetailDeviceUpdate.h |
Overview
A device update object is passed to your application via the PaymentDevice#updateRequired event and is capable of applying an update to a device.
isRequired
Whether the update is required before taking further transactions using the device
@property (nonatomic, assign) BOOL isRequiredDiscussion
Whether the update is required before taking further transactions using the device
Declared In
PPRetailDeviceUpdate.h
wasInstalled
Indicates if the update was installed
@property (nonatomic, assign) BOOL wasInstalledDiscussion
Indicates if the update was installed
Declared In
PPRetailDeviceUpdate.h
updateInProgress
True if software update is in progress @readonly
@property (nonatomic, assign, readonly) BOOL updateInProgressDiscussion
True if software update is in progress @readonly
Declared In
PPRetailDeviceUpdate.h
– offer:
Display a prompt to the merchant offering the opportunity to upgrade the payment device, and optionally update the device. Call the callback with completion status when the upgrade is complete or cancelled.
- (void)offer:(PPRetailDeviceUpdateCompletedHandler _Nullable)callbackDiscussion
Display a prompt to the merchant offering the opportunity to upgrade the payment device, and optionally update the device. Call the callback with completion status when the upgrade is complete or cancelled.
Declared In
PPRetailDeviceUpdate.h
– offer:callback:
Display a prompt to the merchant offering the opportunity to upgrade the payment device, and optionally update the device. Call the callback with completion status when the upgrade is complete or cancelled.
- (void)offer:(NSString *_Nullable)tag callback:(PPRetailDeviceUpdateCompletedHandler _Nullable)callbackDiscussion
Display a prompt to the merchant offering the opportunity to upgrade the payment device, and optionally update the device. Call the callback with completion status when the upgrade is complete or cancelled.
Declared In
PPRetailDeviceUpdate.h
– begin:
Begin the software update.
- (void)begin:(PPRetailDeviceUpdateCompletedHandler _Nullable)callbackDiscussion
Begin the software update.
Declared In
PPRetailDeviceUpdate.h
– begin:callback:
Begin the software update.
- (void)begin:(NSString *_Nullable)tag callback:(PPRetailDeviceUpdateCompletedHandler _Nullable)callbackDiscussion
Begin the software update.
Declared In
PPRetailDeviceUpdate.h
– validateUpdateEligibility
Check device-specific conditions for update such as battery level.
- (void)validateUpdateEligibilityDiscussion
Check device-specific conditions for update such as battery level.
Declared In
PPRetailDeviceUpdate.h
– addReconnectReaderListener:
Add a listener for the reconnectReader event
- (PPRetailReconnectReaderSignal _Nullable)addReconnectReaderListener:(PPRetailReconnectReaderEvent _Nullable)listenerReturn Value
PPRetailReconnectReaderSignal an object that can be used to remove the listener when you’re done with it.
Discussion
Add a listener for the reconnectReader event
Declared In
PPRetailDeviceUpdate.h
– removeReconnectReaderListener:
Remove a listener for the reconnectReader event given the signal object that was returned from addReconnectReaderListener
- (void)removeReconnectReaderListener:(PPRetailReconnectReaderSignal _Nullable)listenerTokenDiscussion
Remove a listener for the reconnectReader event given the signal object that was returned from addReconnectReaderListener
Declared In
PPRetailDeviceUpdate.h