ios - 如何在 Xamarin iOS 上获取 Google map 的许可文本?

标签 ios google-maps xamarin nuget

我正在使用 Xamarin.Google.iOS.Maps NuGet。 Google 文档告诉我在我的应用程序中显示许可证文本,说

You can get the attribution text by making a call to [GMSServices openSourceLicenseInfo]

好吧,但是 NuGet 不支持 GMSServices,在四处搜索之后,我在网络上的任何地方都找不到许可文本。

如何获取文本?

最佳答案

[GMSServices openSourceLicenseInfo] 等于 Xamarin 中的 Google.Maps.MapServices.OpenSourceLicenseInfo

回复:https://github.com/xamarin/GoogleApisForiOSComponents/blob/b4d46b01784fc0c30ad2553b0307e0923586cff4/source/Google/Maps/ApiDefinition.cs#L1244

Attribution Requirements

If you use the Google Maps SDK for iOS in your application, you must include the attribution text as part of a legal notices section in your application. Including legal notices as an independent menu item, or as part of an "About" menu item, is recommended.

You can get the attribution text by making a call to Google.Maps.MapServices.OpenSourceLicenseInfo

关于ios - 如何在 Xamarin iOS 上获取 Google map 的许可文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58451908/

相关文章:

xamarin - Shared Project 和 PCL 共享代码选哪个?

ios - 在 Xamarin 中绑定(bind) Block 的方法

android - Visual Studio 2015 Xamarin.Forms PCL Android 调试 - 空白异常,无调用堆栈,无本地变量

ios - 有没有办法创建一个也可以作为地理围栏的 iBeacon 区域?

jquery - 为什么在添加 Google Map 时两个 DIVS 没有对齐

android - 如何获取用户指向的 GPS 坐标?

java - 在已经扩展 ActionBarActivity 的主 Activity 中扩展一个附加类?

iOS : UIView blurring things moving behind it

ios - UILabel 文本未显示,但 "text"值正在更新(显示在控制台中)

ios - 接收推送通知时显示 View Controller 不起作用,其 View 不在窗口层次结构中