Types

Link copied to clipboard
data class AttestationSelectionEvent(val attestations: List<Attestation>, val result: CompletableDeferred<String>) : PresentationEvent

Event received after a presentation process is started and InfoEvent.result is completed. Contains a list of saved Attestations matching the requested credentials. The CompletableDeferred result has to be completed with either the list of selected Attestation.ids to be sent to the relying party or an empty list if no Attestation is to be sent for the flow to continue. See com.youniqx.walletsdk.presentation.Presentation.presentWith for a usage example.

Link copied to clipboard
data class ErrorEvent(val message: String) : PresentationEvent

Generic error event returning the exception as message for debugging purposes.

Link copied to clipboard
data class InfoEvent(val presentationRequest: PresentationRequest, val result: CompletableDeferred<Unit>) : PresentationEvent

First event received after a presentation process is started. Contains a PresentationRequest object and a CompletableDeferred result which has to be completed for the flow to continue. See com.youniqx.walletsdk.presentation.Presentation.presentWith for a usage example.

Link copied to clipboard

Event received if the presentation request contains invalid or corrupted data.

Link copied to clipboard
data class NotImplementedEvent(val message: String) : PresentationEvent

Event received if a feature is not implemented yet.

Link copied to clipboard

Event received if the request URL was invalid or the request metadata could not be read.

Link copied to clipboard
data class PresentationFailedEvent(val presentationRequest: PresentationRequest, val failure: String) : PresentationEvent

Event received after a presentation process failed. Contains a PresentationRequest object to inform once more about the requested credentials and the issuer.

Link copied to clipboard
data class PresentationSuccessEvent(val presentationRequest: PresentationRequest) : PresentationEvent

Event received after a presentation process is finished successfully. Contains a PresentationRequest object to inform once more about the requested credentials and the issuer.