PosRegistrationResponseHandler

@objcMembers
public class PosRegistrationResponseHandler : NSObject

Manage Point of Sale registration responses.

  • When a confirmation of the registration of a new Point of Sale message is received.

    Declaration

    Swift

    public private(set) var registerPosResponse: ((PosRegistrationResponse) -> 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(registerPosResponse: ((PosRegistrationResponse) -> Void)? = nil,
                errorReceived: ((UnhandledError) -> Void)? = nil)

    Parameters

    registerPosResponse

    an optional PosRegistrationResponse handler to receive the confirmation of the registration of a new Point of Sale.

    errorReceived

    an optional UnhandledError handler.