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

Unable to use ActivityResultLauncher<T> and ActivityResultContract<Input, Output> in Xamarin android. #288

Open
nileshnets opened this issue Mar 12, 2021 · 0 comments

Comments

@nileshnets
Copy link

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<Input, Output>. 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 ActivityResultContract<Input, Output>is 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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants