Searched refs:viewModel (Results 1 – 6 of 6) sorted by relevance
/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/ |
D | PlayerFragment.kt | 96 private val viewModel: PlayerViewModel by fragmentViewModel() in <lambda>() constant in com.airbnb.lottie.samples.PlayerFragment 128 … viewModel.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>() 172 … viewModel.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 …]
|
D | LottiefilesFragment.kt | 60 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()
|
D | ShowcaseFragment.kt | 55 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/ |
D | MainActivity.kt | 32 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/ |
D | SimpleTest.kt | 68 assertThat(activity.viewModel.model).isNotNull() in <lambda>() 69 assertThat(activity.viewModel.name).isNotNull() in <lambda>()
|
/external/dagger2/javatests/dagger/hilt/android/processor/internal/viewmodel/ |
D | ViewModelGeneratorTest.kt | 451 val viewModel = """ in verifyInnerClass() constant 520 .compile(viewModel) in verifyInnerClass()
|