Skip to content
#

mojidra

Here are 139 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

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

Android Hilt is a dependency injection framework provided by Google for Android app development. It is built on top of the popular dependency injection library called Dagger. Hilt simplifies the process of implementing dependency injection in Android applications and helps manage the dependencies of your app's components.

  • Updated Jun 27, 2023
  • Kotlin

In Kotlin, a higher-order function is a function that takes one or more functions as arguments and/or returns a function as its result. Higher-order functions are used to enable more concise and expressive code, as well as to implement advanced programming concepts such as functional programming and the use of lambdas.

  • Updated Apr 29, 2023
  • Kotlin

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

Dagger 2 walks through the dependency graph and generates code that is both easy to understand and trace, while also saving you from writing a large amount of boilerplate code you would normally need to write by hand to obtain references and pass them to other objects as dependencies.

  • Updated Jul 24, 2021
  • Kotlin

In Dagger 2, interface injection refers to the process of injecting dependencies into an interface rather than a concrete class. While interface injection is not the primary approach in Dagger 2 (constructor or field injection is typically used), it can be achieved with the help of the @BINDS annotation.

  • Updated Jun 18, 2023
  • Kotlin

A notification is a message that Android displays outside your app's UI to provide the user with reminders, communication from other people, or other timely information from your app. Users can tap the notification to open your app or take an action directly from the notification.

  • Updated Jul 10, 2021
  • Kotlin

Improve this page

Add a description, image, and links to the mojidra 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 mojidra topic, visit your repo's landing page and select "manage topics."

Learn more