light-mode-image
Learn
Functions

createProximityPresentationSession

Create a proximity-based presentation session with an mDoc holder using device retrieval as per ISO/IEC 18013-5:2021.

Create a proximity-based presentation session with an mDoc holder using device retrieval as per ISO/IEC 18013-5:2021.

If the application using this SDK hasn't tried to use Bluetooth before, calling this function will result in a system UI prompt asking the user to grant Bluetooth permissions to the application. If the user has denied a similar previous permission request (either when interacting with another part of the application or through a prior call to this function) the ProximityPresentationSessionListener#onError will be invoked with MobileCredentialVerifierErrorType#BluetoothPermissionDenied error until the user explicitly grants Bluetooth permissions to the application in their OS app settings.

Signature

function createProximityPresentationSession(
  options: CreateProximityPresentationSessionOptions
): Promise<void>

Parameters

Returns

Promise<void>

How would you rate this page?

On this page