Class coreapidevicelistener

Inheritance diagram for com.payments.core.common.contracts.CoreAPIDeviceListener:

com.payments.core.common.contracts.CoreAPIListener

Public Member Functions

void onDeviceConnected (DeviceEnum type, HashMap< String, String > deviceInfo)
void onDeviceError (CoreDeviceError error, String message)
void onDeviceDisconnected (DeviceEnum type)
void onSelectApplication (ArrayList< String > applications)
void onSelectBTDevice (ArrayList< Object > devices)
void onDeviceConnectionError ()
void onAutoConfigProgressUpdate (String progress)
void onSelectSerialPort (ArrayList< String > ports)
void onDeviceInfoReturned (HashMap< String, String > deviceInfo)
Public Member Functions inherited from com.payments.core.common.contracts.CoreAPIErrorListener
void onError (CoreError error, String message)

Detailed Description

Listener used for events coming from the device

Member Function Documentation

onAutoConfigProgressUpdate()

  • void com.payments.core.common.contracts.CoreAPIDeviceListener.onAutoConfigProgressUpdate
  • (
  • String
  • progress
  • )

This method is called when auto-config progress updates.

onDeviceConnected()

  • void com.payments.core.common.contracts.CoreAPIDeviceListener.onDeviceConnected
  • (
  • DeviceEnum
  • type,

  • HashMap< String, String >
  • deviceInfo

  • )

Fires when device gets connected.

Parameters

  • deviceInfo
  • device information

onDeviceConnectionError()

  • void com.payments.core.common.contracts.CoreAPIDeviceListener.onDeviceConnectionError
  • (
  • )

This method is called when there is a problem connecting to a device.

onDeviceDisconnected()

  • void com.payments.core.common.contracts.CoreAPIDeviceListener.onDeviceDisconnected
  • (
  • DeviceEnum
  • type
  • )

Fires when device gets disconnected.

Parameters

  • type
  • represents disconnected device , DeviceEnum

onDeviceError()

  • void com.payments.core.common.contracts.CoreAPIDeviceListener.onDeviceError
  • (
  • CoreDeviceError
  • error,

  • String
  • message

  • )

This method is triggered when there is an error coming from the device.

Parameters

  • message
  • description of an error

onDeviceInfoReturned()

  • void com.payments.core.common.contracts.CoreAPIDeviceListener.onDeviceInfoReturned
  • (
  • HashMap< String, String >
  • deviceInfo
  • )

Information about the device.

Parameters

  • deviceInfo
  • - contains device information

onSelectApplication()

  • void com.payments.core.common.contracts.CoreAPIDeviceListener.onSelectApplication
  • (
  • ArrayList< String >
  • applications
  • )

This method is called when the application selection is required.

Parameters

  • applications
  • to choose from

onSelectBTDevice()

  • void com.payments.core.common.contracts.CoreAPIDeviceListener.onSelectBTDevice
  • (
  • ArrayList< Object >
  • devices
  • )

This method is called when the bluetooth device selection is required.

Parameters

  • devices
  • to choose from

onSelectSerialPort()

  • void com.payments.core.common.contracts.CoreAPIDeviceListener.onSelectSerialPort
  • (
  • ArrayList< String >
  • ports
  • )

Fires when the serial post needs to be selected.

Parameters

  • ports
  • to choose from