You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you @jpobst that works. It's inconvenient, because I can't do type switch. Only works for the explicit exception type.
In my case var r = e.JavaCast<CreatePublicKeyCredentialDomException>();
It throws an exception if the type does not match. So to cover all available exceptions types, it will be a big block of code.
Same interface OnResult works better, here it's Java.LangObjcte as well. But I can do a c# cast on the CreatePublicKeyCredentialResponse.
if (result is CreatePublicKeyCredentialResponse cpkcr) { ... }
Android application type
Classic Xamarin.Android (MonoAndroid12.0, etc.), Android for .NET (net6.0-android, etc.)
Affected platform version
VS Mac 2022 17.6.9
Description
The interface ICredentialManagerCallback.cs OnError and OnResult use Java.Lang.Object parameter type.
It should be
onResult(GetCredentialResponse result)
and
onError(GetCredentialException e)
Unfortunately, It is not possible cast.
So, it's impossible to get a proper error message on the c# level.
Steps to Reproduce
Did you find any workaround?
nope
Relevant log output
No response
The text was updated successfully, but these errors were encountered: