c# - 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?
解决方案
您正在寻找绑定空间锚点.aar
(确保将构建操作设置为LibraryProjectZip
)。
spatialanchors_java-X.X.X.aar
您可以从此处手动下载 .aar 的最新版本(当前为 1.0.2):
推荐阅读
- python - 如何绘制分组数据?
- javascript - 在全局范围内定义函数以在 NodeJS 的 .then() 中使用
- kdb - 如何在列表过程中忽略错误/异常?
- tensorflow - 内核矩阵的值是多少?
- django - 是否可以在不使用模型表单的情况下进行 Django CRUD 操作?
- python - 在 macOS 中安装 PyAudio 时出错:如何解决此问题?
- c++ - 用swap优化赋值运算符是否可行
- java - Mac 上带有 JRE11 的 Eclipse 2020-09 正在启动 300% CPU java 进程
- r - 使用只有一个变量的 ggplot2 在 R 中绘制小平面网格
- websocket - 有没有办法在 WebSocket 中支持多路复用?类似于 http/2 中的流 id