![JAR search and dependency download from the Maven repository](/logo.png)
jvmMain.com.harmony.kotlin.common.presenter.PresenterViewHolder.kt Maven / Gradle / Ivy
package com.harmony.kotlin.common.presenter
import com.harmony.kotlin.common.WeakReference
// View holder that avoid memory leaks using a WeakReference
actual class PresenterViewHolder actual constructor(view: V) {
private val view = WeakReference(view)
actual fun get(): V? {
return this.view.get()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy