StatusMonitorResponseHandler
@objcMembers
public class StatusMonitorResponseHandler : NSObject
Manage status responses.
-
When a payment device status message is received.
Declaration
Swift
public private(set) var paymentDeviceStatusResponse: ((DeviceStatusResponse) -> Void)? { get }
-
When a service status message is received.
Declaration
Swift
public private(set) var serviceStatusResponse: ((ServiceStatusResponse) -> Void)? { get }
-
When an unexpected error occurs.
Declaration
Swift
public private(set) var errorReceived: ((UnhandledError) -> Void)? { get }
-
Initialise the handler to receive messages from the server.
Declaration
Swift
public init(paymentDeviceStatusResponse: ((DeviceStatusResponse) -> Void)? = nil, serviceStatusResponse: ((ServiceStatusResponse) -> Void)? = nil, errorReceived: ((UnhandledError) -> Void)? = nil)
Parameters
paymentDeviceStatusResponse
an optional DeviceStatusResponse handler to receive the status of the payment device.
serviceStatusResponse
an optional ServiceStatusResponse handler to receive the service status.
errorReceived
an optional UnhandledError handler.