light-mode-image
Learn
Functions

getNfcConfiguration

Retrieve the currently persisted NFC configuration.

If none was previously stored, a default configuration is returned and persisted.

NFC is only supported on Android. On any other platform, it will return NfcError.PlatformNotSupported.

Signature

function getNfcConfiguration(): Promise<Result<NfcConfiguration, MobileCredentialHolderError<PlatformNotSupported>>>

Returns

Promise<Result<NfcConfiguration, MobileCredentialHolderError<PlatformNotSupported>>>

A promise that resolves to the stored NFC configuration, or to the newly persisted default when none was stored, and to NfcError.PlatformNotSupported on any platform other than Android.

How would you rate this page?

On this page