dotnet / dotnet/android-libraries
Unable to use ActivityResultLauncher<T> and ActivityResultContract<Input, Output> in Xamarin android.
- Dominant language
- C#
- Stars
- 317
- Forks
- 73
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 17
Description
### Version Information
- Visual Studio version (Microsoft Visual Studio Community 2019 Version 16.9.0):
- Xamarin.Android version (eg. 10):
- Support Libraries version (eg 28.0.0):
### Describe your Issue:
I have a native Android AAR which has API made by using ActivityResultLauncher and ActivityResultContract. When trying to consume the API I get the error in Xamarin for ActivityResultLauncher "Cannot convert non-generic type to generic". It recognizes only ActivityResultLauncher. And the custom class made by extending ActivityResultContractis not generated in the DLL from in the binding project.
### Steps to Reproduce (with link to sample solution if possible):
### Include any relevant Exception Stack traces, build logs, adb logs:
Contributor guide
Assessment
This issue has not been assessed yet.