首页 > 解决方案 > Azure SpatialAnchors in Xamarin

问题描述

I've been trying to integrate Azure's SpatialAnchors API into a Xamarin project. Sadly, there's no easy pre-packaged NuGet binary that I can simply add to my project. Microsoft does say that:

Yes. While we don't provide a Xamarin SDK, we expect developers can use Azure Spatial Anchors in their Xamarin apps by integrating with the Azure Spatial Anchors API.1

Does anybody knows anything about this? What API?

I've been trying to import the original library as a JAR but I'm having crashes at runtime caused by functions that Xamarin isn't loading from the JAR. There's also this NuGet that I landed onto, it doesn't directly expose the API functions. I've been trying to use the content of a Unity C# file to access the content of that NuGet, but that too seems hard to achieve.

Anyone knows how to access the SpatialAnchors API with Xamarin? Is there a self-contained JAR somewhere that has all of the functions?

标签: c#xamarinazure-spatial-anchors

解决方案


您正在寻找绑定空间锚点.aar(确保将构建操作设置为LibraryProjectZip)。

  • spatialanchors_java-X.X.X.aar

您可以从此处手动下载 .aar 的最新版本(当前为 1.0.2):


推荐阅读