击剑编排软件_击剑和匕首注释备忘单

by admin安全保障措施

击剑编排软件_击剑和匕首注释备忘单

Hilt defines a standard way to do dependency injection (DI) in your application by providing containers for every Android class in your project and managing their lifecycles automatically for you. Hilt is built on top of the popular DI library Dagger so benefits from the compile time correctness, runtime performance, scalability, and Android Studio support that Dagger provides.

Hilt通过为项目中的每个Android类提供容器并为您自动管理其生命周期,定义了一种在应用程序中进行依赖项注入(DI)的标准方法 。 Hilt基于流行的DI库Dagger构建,因此可以受益于Dagger提供的编译时正确性,运行时性能,可伸缩性和Android Studio支持 。

This cheat sheet allows you to quickly see what the different Hilt and Dagger annotations do and how to use them. For more information about DI and Hilt, check out these guides or read the documentation. If you prefer a step-by-step learning approach, check out the Using Hilt in an Android app codelab.

这种小抄可以让你快速了解不同希尔特和匕首注释做,以及如何使用它们。 有关DI和Hilt的更多信息,请查阅这些指南或阅读文档 。 如果您喜欢逐步学习方法,请查看Android应用程序代码实验室中的 “ 使用Hilt” 。

Download cheat sheet in PDF

下载PDF备忘单

Read More