commonMain.net.iriscan.sdk.io.ResourceIOFactory.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of biometric-sdk-jvm Show documentation
Show all versions of biometric-sdk-jvm Show documentation
Biometric SDK Kotlin Multiplatform library (android + ios)
The newest version!
package net.iriscan.sdk.io
import net.iriscan.sdk.core.PlatformContext
import net.iriscan.sdk.core.createContext
/**
* @author Slava Gornostal
*/
object ResourceIOFactory {
private var instance: ResourceIO? = null
fun initialize(context: PlatformContext?) {
this.instance = ResourceIOImpl(context ?: createContext())
}
fun getInstance(): ResourceIO =
this.instance ?: throw IllegalStateException("Resource helper was not initialized")
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy