本文整理汇总了Java中com.google.android.gms.games.leaderboard.Leaderboards.LoadPlayerScoreResult方法的典型用法代码示例。如果您正苦于以下问题:Java Leaderboards.LoadPlayerScoreResult方法的具体用法?Java Leaderboards.LoadPlayerScoreResult怎么用?Java Leaderboards.LoadPlayerScoreResult使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.android.gms.games.leaderboard.Leaderboards
的用法示例。
在下文中一共展示了Leaderboards.LoadPlayerScoreResult方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadCurrentPlayerLeaderboardScore
import com.google.android.gms.games.leaderboard.Leaderboards; //导入方法依赖的package包/类
public final PendingResult<Leaderboards.LoadPlayerScoreResult> loadCurrentPlayerLeaderboardScore(GoogleApiClient paramGoogleApiClient, final String paramString, final int paramInt1, final int paramInt2)
{
return paramGoogleApiClient.a(new b(paramString)
{
protected void a(fl paramAnonymousfl)
{
paramAnonymousfl.a(this, null, paramString, paramInt1, paramInt2);
}
});
}
示例2: y
import com.google.android.gms.games.leaderboard.Leaderboards; //导入方法依赖的package包/类
public Leaderboards.LoadPlayerScoreResult y(final Status paramStatus)
{
return new Leaderboards.LoadPlayerScoreResult()
{
public LeaderboardScore getScore()
{
return null;
}
public Status getStatus()
{
return paramStatus;
}
};
}
示例3: isScoreResultValid
import com.google.android.gms.games.leaderboard.Leaderboards; //导入方法依赖的package包/类
private boolean isScoreResultValid(final Leaderboards.LoadPlayerScoreResult scoreResult) {
return scoreResult != null && GamesStatusCodes.STATUS_OK == scoreResult.getStatus().getStatusCode() && scoreResult.getScore() != null;
}