Skip to content
#

vaibhav

Here are 361 public repositories matching this topic...

The ViewModelFactory is a class in the Android Architecture Components that is used to create instances of ViewModel classes. In Android, a ViewModel is used to store and manage data that is used in an activity or fragment, and survives configuration changes, such as screen rotation.

  • Updated May 24, 2021
  • Kotlin

WorkManager is the recommended solution for persistent work. Work is persistent when it remains scheduled through app restarts and system reboots. Because most background processing is best accomplished through persistent work, WorkManager is the primary recommended API for background processing.

  • Updated Jul 16, 2021
  • Java

Dagger 2 is one of dependency injection framework in Android that can provide us dependencies in a particular class. It’s probably the most used dependency injection framework in Android development. Singleton annotation can be put in other component and as long as the component alive the singleton annotated object will alive as well.

  • Updated Jul 29, 2021
  • Java

Dependency injection (DI) is a technique widely used in programming and well suited to Android development. By following the principles of DI, you lay the groundwork for good app architecture. Implementing dependency injection provides you with the following advantages: 1. Reusability of code 2. Ease of refactoring 3. Ease of testing

  • Updated Jul 24, 2021
  • Kotlin

In Kotlin, var and val are used to declare variables. The main difference between them is that var declares a mutable variable, which means its value can be changed after it is initialized, while val declares an immutable variable, which means its value cannot be changed after it is initialized.

  • Updated Apr 29, 2023
  • Kotlin

In Android Jetpack Compose, state management is an important aspect of building reactive UIs. The RememberSaveable function is a part of the Jetpack Compose state APIs that allows you to save and restore the state of a composable function across configuration changes, such as screen rotations.

  • Updated Jul 14, 2023
  • Kotlin

Queue is an abstract data structure, somewhat similar to Stacks. Unlike stacks, a queue is open at both its ends. One end is always used to insert data (enqueue) and the other is used to remove data (dequeue). Queue follows First-In-First-Out methodology, i.e., the data item stored first will be accessed first.

  • Updated Apr 4, 2022
  • Java

Improve this page

Add a description, image, and links to the vaibhav topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the vaibhav topic, visit your repo's landing page and select "manage topics."

Learn more