SmartCardEmulationDomain

(undocumented in the protocol definition)

Official doc

Functions

Link copied to clipboard

Fired when |SCardBeginTransaction| is called.

Link copied to clipboard

Fired when |SCardCancel| is called.

Link copied to clipboard

Fired when |SCardConnect| is called.

Link copied to clipboard

Fired when |SCardControl| is called.

Link copied to clipboard
suspend fun disable(): DisableResponse

Disables the |SmartCardEmulation| domain.

Link copied to clipboard

Fired when |SCardDisconnect| is called.

Link copied to clipboard
suspend fun enable(): EnableResponse

Enables the |SmartCardEmulation| domain.

Link copied to clipboard

Fired when |SCardEndTransaction| is called.

Link copied to clipboard

Fired when |SCardEstablishContext| is called.

Link copied to clipboard

Subscribes to all events related to this domain.

Link copied to clipboard

Fired when |SCardGetAttrib| is called.

Link copied to clipboard

Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds.

Link copied to clipboard

Fired when |SCardListReaders| is called.

Link copied to clipboard

Fired when |SCardReleaseContext| is called.

Link copied to clipboard

Reports the result of a |SCardBeginTransaction| call. On success, this creates a new transaction object.

Link copied to clipboard
inline suspend fun reportConnectResult(requestId: String, handle: Int, optionalArgs: ReportConnectResultRequest.Builder.() -> Unit = {}): ReportConnectResultResponse

Reports the successful result of a |SCardConnect| call.

Link copied to clipboard
suspend fun reportDataResult(requestId: String, data: String): ReportDataResultResponse

Reports the successful result of a call that sends back data on success. Used for |SCardTransmit|, |SCardControl|, and |SCardGetAttrib|.

Link copied to clipboard
suspend fun reportError(requestId: String, resultCode: ResultCode): ReportErrorResponse

Reports an error result for the given request.

Link copied to clipboard

Reports the successful result of a |SCardEstablishContext| call.

Link copied to clipboard

Reports the successful result of a |SCardGetStatusChange| call.

Link copied to clipboard

Reports the successful result of a |SCardListReaders| call.

Link copied to clipboard

Reports the successful result of a call that returns only a result code. Used for: |SCardCancel|, |SCardDisconnect|, |SCardSetAttrib|, |SCardEndTransaction|.

Link copied to clipboard

Reports the successful result of a |SCardReleaseContext| call.

Link copied to clipboard
inline suspend fun reportStatusResult(requestId: String, readerName: String, state: ConnectionState, atr: String, optionalArgs: ReportStatusResultRequest.Builder.() -> Unit = {}): ReportStatusResultResponse

Reports the successful result of a |SCardStatus| call.

Link copied to clipboard

Fired when |SCardSetAttrib| is called.

Link copied to clipboard

Fired when |SCardStatus| is called.

Link copied to clipboard

Fired when |SCardTransmit| is called.