-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- api 30 이하에서 Activity. onRequestPermissionsResult 를 오버라이딩 하여 권한 요청의 결과를 처리하는 방법이 deprecation 되었기 때문에 31 부터는 ActivityResult*** 를 이용하여 권한 또는 화면을 요청을 하게 되는데, 해당 부분을 잘못 이해하여 하위버전에서 onRequestPermissionsResult 를 오버라이딩 하여 처리해야 한다고 생각하고 작업했던 부분을 수정 - 내부적으로 권한 또는 화면 요청의 로직이 ActivityCompat 의 함수로 처리되기 때문에 개발자가 신경써야 할 부분이 없음 - 따라서, ActivityResultLauncher, ActivityResultContract 를 이용하여 권한을 처리하고 compose 용도로 지원하는 androidx.activity.compose.ActivityResultRegistry.kt 의 함수들을 이용하면 됨
- Loading branch information
Showing
8 changed files
with
72 additions
and
149 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.