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 isRequired

Discussion

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 wasInstalled

Discussion

Indicates if the update was installed

Declared In

PPRetailDeviceUpdate.h

  updateInProgress

True if software update is in progress @readonly

@property (nonatomic, assign, readonly) BOOL updateInProgress

Discussion

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)callback

Discussion

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)callback

Discussion

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)callback

Discussion

Begin the software update.

Declared In

PPRetailDeviceUpdate.h

– begin:callback:

Begin the software update.

- (void)begin:(NSString *_Nullable)tag callback:(PPRetailDeviceUpdateCompletedHandler _Nullable)callback

Discussion

Begin the software update.

Declared In

PPRetailDeviceUpdate.h

– validateUpdateEligibility

Check device-specific conditions for update such as battery level.

- (void)validateUpdateEligibility

Discussion

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)listener

Return 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)listenerToken

Discussion

Remove a listener for the reconnectReader event given the signal object that was returned from addReconnectReaderListener

Declared In

PPRetailDeviceUpdate.h