Class coreapidevicelistener

Listener used for events coming from the device More…

Inheritance diagram for CorePayments.CoreAPIDeviceListener:

CorePayments.CoreAPIListener

Public Member Functions

void OnDeviceError (CoreDeviceError error)
This method is triggered when there is an error coming from the device.More…
void OnSelectApplication (List< string > applications)
This method is called when the application selection is required.More…
void OnDeviceConnected (DeviceEnum type, Dictionary< string, string > deviceInfo)
Fires when device gets connected.More…
void OnDeviceDisconnected (DeviceEnum type)
Fires when device gets disconnected.More…
void OnDeviceInfoReturned (Dictionary< string, string > deviceInfo)
Information about the device.More…
Public Member Functions inherited from CorePayments.CoreAPIErrorListener
void OnError (CoreError error, string message)
This method is triggered after error has occurred in the SDK.More…

Detailed Description

Listener used for events coming from the device

Member Function Documentation

OnDeviceConnected()

  • void CorePayments.CoreAPIDeviceListener.OnDeviceConnected
  • (
  • DeviceEnum
  • type,

  • Dictionary< string, string >
  • deviceInfo

  • )

Fires when device gets connected.

Parameters

  • type
  • Connected device type.

  • deviceInfo
  • The device information.

OnDeviceDisconnected()

  • void CorePayments.CoreAPIDeviceListener.OnDeviceDisconnected
  • (
  • DeviceEnum
  • type
  • )

Fires when device gets disconnected.

Parameters

  • type
  • Disconnected device type.

OnDeviceError()

  • void CorePayments.CoreAPIDeviceListener.OnDeviceError
  • (
  • CoreDeviceError
  • error
  • )

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

Parameters

  • error
  • The error.

OnDeviceInfoReturned()

  • void CorePayments.CoreAPIDeviceListener.OnDeviceInfoReturned
  • (
  • Dictionary< string, string >
  • deviceInfo
  • )

Information about the device.

Parameters

  • deviceInfo
  • The device information.

OnSelectApplication()

  • void CorePayments.CoreAPIDeviceListener.OnSelectApplication
  • (
  • List< string >
  • applications
  • )

This method is called when the application selection is required.

Parameters

  • applications
  • The list of applications to choose from.