getCurrentProximityPresentationSession

Get the current proximity presentation session.

Return

An instance of ProximityPresentationSession if a session exists, null otherwise.

A proximity presentation session is active from the moment a session is created using createProximityPresentationSession until the session is terminated either by the holder or the verifier. During this time, the session information can be accessed using this function. Once the session is terminated, this function will return null until a new session is created. Note that only one proximity presentation session can be active at any given time. Therefore, if this function returns a session, it means that there is an active session regardless of which part of the app created it.

Throws

If the SDK API is called before the SDK is initialized.