Updated on 2026-08-14

This commit is contained in:
Tangem 2026-02-26 23:21:38 +07:00
commit c62f464b86
22 changed files with 70 additions and 48 deletions

View file

@ -45,10 +45,18 @@ interface TangemSdkManager {
suspend fun checkNeedEnrollBiometrics(awaitInitialization: Boolean = true): Boolean
/**
* Scans the card and returns [ScanResponse] with the card information.
* If [cardId] is provided, it will try to find the card with this ID in the card reader's range.
* If [allowsRequestAccessCodeFromRepository] is true, it will try to request access code from the repository
* if the card is protected by access code and the access code is not saved in the repository.
* If [shouldCheckIsAlreadyActivated] is true, it will check if the card is already activated and return an error if it is.
*/
suspend fun scanProduct(
cardId: String? = null,
messageRes: Int? = null,
allowsRequestAccessCodeFromRepository: Boolean = false,
shouldCheckIsAlreadyActivated: Boolean,
): CompletionResult<ScanResponse>
suspend fun createProductWallet(