This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Пример использования */ | |
class MainActivity : AppCompatActivity(R.layout.activity_main) { | |
@Inject lateinit var fragmentFactory: FragmentFactory | |
override fun onCreate(savedInstanceState: Bundle?) { | |
DaggerActivityComponent | |
.factory() | |
.create() | |
.inject(this) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PermissionsManager( | |
private val application: Application | |
) { | |
private val mainThreadScope = CoroutineScope(Job() + Dispatchers.Main) | |
private var questionHandler: QuestionHandler? = null | |
private var requestLauncher: ActivityResultLauncher<Array<String>>? = null |
OlderNewer