Updated on 2026-08-14
This commit is contained in:
parent
342b6a2f50
commit
ec40334d8a
26 changed files with 527 additions and 50 deletions
|
|
@ -0,0 +1,17 @@
|
|||
package com.tangem.sdk.api
|
||||
|
||||
import androidx.activity.ComponentActivity
|
||||
import com.tangem.TangemSdk
|
||||
import com.tangem.operations.backup.BackupService
|
||||
import com.tangem.sdk.extensions.init
|
||||
import java.lang.ref.WeakReference
|
||||
|
||||
class BackupServiceHolder {
|
||||
|
||||
lateinit var backupService: WeakReference<BackupService>
|
||||
private set
|
||||
|
||||
fun createAndSetService(tangemSdk: TangemSdk, activity: ComponentActivity) {
|
||||
backupService = WeakReference(BackupService.init(tangemSdk, activity))
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue