This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ExampleViewModelImpl( | |
private val exampleUseCase: ExampleUseCase, | |
private val schedulerProvider: SchedulerProvider, | |
initialState: ExampleState = ExampleState(), | |
) : HelpFaqViewModel(initialState) { | |
... | |
exampleUseCase() | |
.subscribeOn(schedulerProvider.io()) | |
.subscribe { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.view.View | |
import androidx.fragment.app.Fragment | |
import androidx.lifecycle.* | |
import androidx.viewbinding.ViewBinding | |
import kotlin.properties.ReadOnlyProperty | |
import kotlin.reflect.KProperty | |
inline fun <reified VB : ViewBinding> Fragment.viewBinding( | |
noinline bind: (view: View) -> VB, | |
) = FragmentViewBindingPropertyDelegate(this, bind) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.view.View | |
import android.view.ViewGroup | |
import androidx.appcompat.app.AppCompatActivity | |
import androidx.viewbinding.ViewBinding | |
import kotlin.properties.ReadOnlyProperty | |
import kotlin.reflect.KProperty | |
inline fun <reified VB : ViewBinding> AppCompatActivity.viewBinding( | |
noinline bind: (view: View) -> VB, | |
) = ActivityViewBindingPropertyDelegate(bind) |