From ac5b58437db22bd37f5c4119469bbff27e40738a Mon Sep 17 00:00:00 2001 From: Ross Schulman Date: Tue, 8 Oct 2024 14:41:32 -0400 Subject: [PATCH] Add a terminate function to IsoMdlPresentation for interrupted sessions (#40) --- .../main/java/com/spruceid/mobile/sdk/IsoMdlPresentation.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MobileSdk/src/main/java/com/spruceid/mobile/sdk/IsoMdlPresentation.kt b/MobileSdk/src/main/java/com/spruceid/mobile/sdk/IsoMdlPresentation.kt index c92705c..2ff3970 100644 --- a/MobileSdk/src/main/java/com/spruceid/mobile/sdk/IsoMdlPresentation.kt +++ b/MobileSdk/src/main/java/com/spruceid/mobile/sdk/IsoMdlPresentation.kt @@ -78,6 +78,10 @@ class IsoMdlPresentation( } } + fun terminate() { + this.bleManager!!.terminate() + } + fun updateRequestData(data: ByteArray) { try { this.itemsRequests = session!!.handleRequest(data) @@ -86,4 +90,4 @@ class IsoMdlPresentation( this.callback.error(e) } } -} \ No newline at end of file +}