Home
last modified time | relevance | path

Searched refs:viewModel (Results 1 – 6 of 6) sorted by relevance

/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/
DPlayerFragment.kt96 private val viewModel: PlayerViewModel by fragmentViewModel() in <lambda>() constant in com.airbnb.lottie.samples.PlayerFragment
128viewModel.selectSubscribe(PlayerState::minFrame, PlayerState::maxFrame) { minFrame, maxFrame -> in <lambda>()
137 viewModel.fetchAnimation(args) in <lambda>()
138 viewModel.asyncSubscribe(PlayerState::composition, onFail = { in <lambda>()
146 borderToggle.setOnClickListener { viewModel.toggleBorderVisible() } in <lambda>()
147 viewModel.selectSubscribe(PlayerState::borderVisible) { in <lambda>()
172viewModel.selectSubscribe(PlayerState::controlsVisible) { controlsContainer.animateVisible(it) } in <lambda>()
174 viewModel.selectSubscribe(PlayerState::controlBarVisible) { controlBar.animateVisible(it) } in <lambda>()
176 renderGraphToggle.setOnClickListener { viewModel.toggleRenderGraphVisible() } in <lambda>()
177 viewModel.selectSubscribe(PlayerState::renderGraphVisible) { in <lambda>()
[all …]
DLottiefilesFragment.kt60 private val viewModel: LottiefilesViewModel by fragmentViewModel() constant in LottiefilesFragment
62 override fun EpoxyController.buildModels() = withState(viewModel) { state -> in buildModels()
72 recentClickListener { _ -> viewModel.setMode(LottiefilesMode.Recent) } in buildModels()
73 popularClickListener { _ -> viewModel.setMode(LottiefilesMode.Popular) } in buildModels()
74 searchClickListener { _ -> viewModel.setMode(LottiefilesMode.Search) } in buildModels()
80 searchClickListener { viewModel.setMode(LottiefilesMode.Search, it) } in buildModels()
92 onBind { _, _, _ -> viewModel.fetchMoreItems() } in buildModels()
99 onBind { _, _, _ -> viewModel.fetchMoreItems() } in buildModels()
DShowcaseFragment.kt55 private val viewModel: ShowcaseViewModel by fragmentViewModel() constant in ShowcaseFragment
57 override fun EpoxyController.buildModels() = withState(viewModel) { state -> in buildModels()
/external/dagger2/javatests/artifacts/hilt-android/simpleKotlin/app/src/main/java/dagger/hilt/android/simpleKotlin/
DMainActivity.kt32 val viewModel by viewModels<MainViewModel>() constant
38 val text = resources.getString(R.string.welcome, viewModel.name, viewModel.model) in onCreate()
/external/dagger2/javatests/artifacts/hilt-android/simpleKotlin/app/src/test/java/dagger/hilt/android/simpleKotlin/
DSimpleTest.kt68 assertThat(activity.viewModel.model).isNotNull() in <lambda>()
69 assertThat(activity.viewModel.name).isNotNull() in <lambda>()
/external/dagger2/javatests/dagger/hilt/android/processor/internal/viewmodel/
DViewModelGeneratorTest.kt451 val viewModel = """ in verifyInnerClass() constant
520 .compile(viewModel) in verifyInnerClass()