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

androidMain.tech.skot.core.components.SKLoaderViewProvy.kt Maven / Gradle / Ivy

There is a newer version: 1.2.9
Show newest version
package tech.skot.core.components

import android.view.View
import androidx.fragment.app.Fragment
import tech.skot.view.live.MutableSKLiveData

class SKLoaderViewProxy:SKComponentViewProxy(), SKLoaderVC {

    private val visibleLD = MutableSKLiveData(false)
    override var visible: Boolean by visibleLD


    override fun bindTo(activity: SKActivity, fragment: Fragment?, binding: View) =
            SKLoaderView(this, activity, fragment, binding).apply {
                visibleLD.observe {
                    onVisible(it)
                }
            }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy