In Dagger Hilt, we have @EntryPoint annotation to use.
As shared in https://dagger.dev/hilt/entry-points.html, we can get access the Entry points through
EntryPoints.get(applicationContext, MyClassInterface.class)
However, I also notice in https://developer.android.com/codelabs/android-dagger-to-hilt#4, we use EntryPointAccessors instead as below.
EntryPointAccessors.fromApplication(applicationContext, RegistrationEntryPoint::class.java)
When should we use EntryPoints.get vs EntryPointAccessors.from*?