All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.net.iriscan.sdk.io.ResourceIOFactory.kt Maven / Gradle / Ivy

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