Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否有考虑onActivityResult回调的权限申请切换成Activity Results API #103

Closed
LGlxb opened this issue Nov 4, 2021 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@LGlxb
Copy link

LGlxb commented Nov 4, 2021

现在官方不再推荐onActivityResult而是建议Activity Results API,
ActivityResultContracts.XX,可以兼容requestMultiplePermissions?

@LGlxb LGlxb added the bug Something isn't working label Nov 4, 2021
@getActivity
Copy link
Owner

  1. 转和不转有什么区别吗?有什么好处?
  2. 官方有多大的可能性把 onActivityResult API 删掉?

@getActivity
Copy link
Owner

还有 ActivityResultContract是 Activity 1.2.0-alpha02 和 Fragment 1.3.0-alpha02 中新追加的新 API,如果转了,那么还停留在 Support 包的开发者应该怎么处理?

@LGlxb
Copy link
Author

LGlxb commented Nov 4, 2021

应该

是的 一昧的求新反而得不偿失 框架更加考虑的是易用性和稳定

@getActivity
Copy link
Owner

getActivity commented Nov 4, 2021

是的,小伙子,你的项目想怎么弄都可以,你只需要考虑你的需求和场景,但是框架则不同,需要考虑和兼容大众的需求和场景。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants