xamarin / XamarinComponents

Plugins for Xamarin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trackable is not a Plane

smazza94 opened this issue · comments

if (trackable is Plane && ((Plane)trackable).IsPoseInPolygon(hit.HitPose))

I tried to deploy the sample, but no anchors are created because of trackable variable isn't an instance of Plane, even if using the debugger I see that it's com.google.ar.core.Plane.

Why?
@moljac

This has affected my team's product. We've had to temporarily degrade the experience for Android users to get things as close to fully working as we can.

I haven't worked with Xamarin Android bindings libraries enough to fully understand the changes in #1184, but at first glance they seem likely to be involved. This PR removed a member of Plane that is defined by the Trackable interface, commented out the attr for TrackableBase, and removed partials for Point and Plane (both trackables).

path="/api/package[@name='com.google.ar.core']/class[@name='Plane']/method[@name='getAnchors' and count(parameter)=0]"

Looking at the metadata (through Visual Studio) at 1.26.0, Plane, is defined as an extension of Java.Lang.Object with no reference to ITrackable. The same metadata for 1.23.0 defines Plane as an extension of TrackableBase, which implements ITrackable.