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

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