Builder

class Builder(context: Context, eDeviceKey: EcPublicKey, options: DataTransportOptions, listener: NfcEngagementHelper.Listener, executor: Executor)

A builder for NfcEngagementHelper.

Parameters

context

application context.

eDeviceKey

the public part of EDeviceKey for mdoc session encryption according to ISO/IEC 18013-5:2021 section 9.1.1.4.

options

set of options for creating DataTransport instances.

listener

the listener.

executor

a Executor to use with the listener.

Constructors

Link copied to clipboard
constructor(context: Context, eDeviceKey: EcPublicKey, options: DataTransportOptions, listener: NfcEngagementHelper.Listener, executor: Executor)

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Builds the NfcEngagementHelper and starts listening for connections.

Link copied to clipboard
fun useNegotiatedHandover(): <Error class: unknown class>

Configures the builder so NFC Negotiated Handover is used.

Link copied to clipboard
fun useStaticHandover(connectionMethods: List<MdocConnectionMethod>): <Error class: unknown class>

Configures the builder so NFC Static Handover is used.