如何创建Google+Plus一键,同时已经使用GooglePlay游戏服务SDK for C++实现了排行榜
How to create Google+ Plus One button while already having Leaderboards implemented using Google Play Game Services SDK for C++?
我正在开发一个android应用程序。它已经使用Google Play游戏服务SDK for C实现了排行榜++(Google Games C++SDK文档)。这已经处理了授权。
现在我想添加一个属于Google+平台的Plus One按钮,它是Google Play Servives的一部分。问题是没有C++SDK(Google+平台文档)。我可能可以使用Android API来做这件事,但如何处理已经使用C++SDK编写的排行榜?
有没有办法同时使用Google Play Game Services C++SDK和Android版Google Play Services SDK的Plus One按钮来使用排行榜?这两个API都有登录Google Play Services的授权方法。或者这是否意味着对我来说,唯一的解决方案是使用Android API而不是C++来重写排行榜?
至少,您应该能够通过打开https://plus.google.com/share?url=<url>
的URL来使用基于web的共享对话框。您还应该能够从Java代码中触发共享意图,例如:
Intent shareIntent = new PlusShare.Builder(this)
.setType("text/plain")
.setText("Welcome to the Google+ platform.")
.setContentUrl(Uri.parse("https://developers.google.com/+/"))
.getIntent();
startActivityForResult(shareIntent, 0);
相关文章:
- 在C++游戏中与库存系统作斗争
- Active Directory:从网络服务帐户下运行的Windows服务调用ADsOpenObject时失败
- 换位表导致测试失败(但在游戏中运行良好)
- Craps游戏问题,忽略if语句
- 检测win32服务创建和删除的最佳方法
- 使用 mod_gsoap 部署服务时,如何在 Gsoap 中更改 soap 上下文的模式?
- 当服务中的事件被触发时,如何将响应从服务发送回客户端?
- 矢量下标超出SFML游戏中的范围
- 我是 c++ 的新手.学习基本知识后,我想做井字游戏.对于印刷板,我在下面写代码,但它显示错误
- 我在贪吃蛇游戏中收到了错误代码 -1073741571
- gRPC 生成的代码缺少服务实现
- 我应该在简单的策略游戏中为各个派系使用类吗 - C++
- 谷歌Play游戏服务和64位x86支持
- Google Play游戏服务可以用于PC游戏吗?(Windows/Linux/OSX)
- 如何创建Google+Plus一键,同时已经使用GooglePlay游戏服务SDK for C++实现了排行榜
- Google Play 游戏服务C++集成
- Google Play游戏服务(GPGS)实时多人游戏(RTMP)在Android上永远不会匹配(iOS适用)
- Google Play 游戏服务的邀请对话框不显示任何好友
- Google Play游戏服务C++SDK找不到NativeSdkEntryPoints java类
- 在iOS上创建实时聊天室后,Google Play游戏服务崩溃