detectCardInterface

abstract fun detectCardInterface(supportedInterface: Int, timeout: Int): Int

Performs polling on all supported interfaces until timeout.

It's the implementer's responsibility to handle timeout exhaustion as well user cancellation.

Return

The detected CardInterfaceOrErrorType value (Int)

Parameters

supportedInterfaces

Contact and/or Contactless and/or Magstripe

Timeout