Android 从 google 以编程方式播放服务获取排行榜名称
Android get leaderboard name from google play services programatically
我看到这个 https://developers.google.com/android/reference/com/google/android/gms/games/leaderboard/Leaderboard 并且:getDisplayName()
检索此排行榜的显示名称。
如何"get"排行榜使用排行榜id来调用这个方法?某处有这样的例子吗?谢谢
Leaderboard reference in the docs only state getDisplayName ()作为检索排行榜显示名称的一种方式。它没有提到使用排行榜 id 的内置函数。
中可以找到它的示例用法
Leaderboard leaderboard = loadScoresResult
.getLeaderboard();
String leaderboardName = leaderboard.getDisplayName() ;
我看到这个 https://developers.google.com/android/reference/com/google/android/gms/games/leaderboard/Leaderboard 并且:getDisplayName() 检索此排行榜的显示名称。
如何"get"排行榜使用排行榜id来调用这个方法?某处有这样的例子吗?谢谢
Leaderboard reference in the docs only state getDisplayName ()作为检索排行榜显示名称的一种方式。它没有提到使用排行榜 id 的内置函数。
中可以找到它的示例用法Leaderboard leaderboard = loadScoresResult
.getLeaderboard();
String leaderboardName = leaderboard.getDisplayName() ;