CLPort

interface CLPort

Functions

Link copied to clipboard
abstract fun isCtlsCardPresent(iTimeout: Int): Boolean

Check if a contactless card is present.

Link copied to clipboard
abstract fun powerOff()

Deactivates the contactless interface, turning off the radio frequency (RF) field. This function should be called to conserve power when contactless functionality is not actively being used. If there is an active communication with a card, this function will terminate it.

Link copied to clipboard
abstract fun powerOn()

Powers on the Contactless interface. This function activates the contactless reader, making it ready to interact with contactless cards. It should be called before attempting any operations like polling for cards or sending APDU commands.

Link copied to clipboard
abstract fun sendAPDU(baApduCommand: ByteArray): TypeOutputContactlessAPDU

Sends an Application Protocol Data Unit (APDU) command to the contactless card and retrieves the response.