简体   繁体   English

Google Play服务如何从另一个应用程序检索用户保存的游戏

[英]Google Play Services How to retrieve user's saved games from another application

I want to build an android application that would be an "add-on" to another application that uses google play services to save games. 我想构建一个Android应用程序,该应用程序将成为使用Google Play服务保存游戏的另一个应用程序的“附件”。 Is there any way for my application to access the saved game(s) (with user's permission of course) for this other application? 我的应用程序是否可以通过其他方式(当然,需要用户许可)访问保存的游戏?

I guess you may refer with this documentation . 我想您可以参考此文档 To retrieve all saved games for the currently signed-in player, call the load method. 要检索当前已登录玩家的所有已保存游戏,请调用load方法。 Your game can also retrieve a specific saved game through the player's UI selection, as described in Displaying Saved Games . 您的游戏还可以通过玩家的UI选择来检索特定的已保存游戏,如显示已保存的游戏中所述 The returned saved game is represented as a Snapshot , which your game can then open to read its content and metadata. 返回的已保存游戏表示为Snapshot ,然后可以将其打开以读取其内容和元数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM