本文整理汇总了Java中com.google.android.gms.games.multiplayer.turnbased.TurnBasedMultiplayer.CancelMatchResult方法的典型用法代码示例。如果您正苦于以下问题:Java TurnBasedMultiplayer.CancelMatchResult方法的具体用法?Java TurnBasedMultiplayer.CancelMatchResult怎么用?Java TurnBasedMultiplayer.CancelMatchResult使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.android.gms.games.multiplayer.turnbased.TurnBasedMultiplayer
的用法示例。
在下文中一共展示了TurnBasedMultiplayer.CancelMatchResult方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: processResult
import com.google.android.gms.games.multiplayer.turnbased.TurnBasedMultiplayer; //导入方法依赖的package包/类
private void processResult(TurnBasedMultiplayer.CancelMatchResult result) {
if (!checkStatusCode(null, result.getStatus().getStatusCode())) {
return;
}
isDoingTurn = false;
showWarning("Match",
"This match is canceled. All other players will have their game ended.");
}
示例2: processResult
import com.google.android.gms.games.multiplayer.turnbased.TurnBasedMultiplayer; //导入方法依赖的package包/类
private void processResult(TurnBasedMultiplayer.CancelMatchResult result) {
dismissSpinner();
if (!checkStatusCode(null, result.getStatus().getStatusCode())) {
return;
}
isDoingTurn = false;
showWarning("Match",
"This match is canceled. All other players will have their game ended.");
}
示例3: cancelMatch
import com.google.android.gms.games.multiplayer.turnbased.TurnBasedMultiplayer; //导入方法依赖的package包/类
public final PendingResult<TurnBasedMultiplayer.CancelMatchResult> cancelMatch(GoogleApiClient paramGoogleApiClient, final String paramString)
{
return paramGoogleApiClient.b(new a(paramString)
{
protected void a(fl paramAnonymousfl)
{
paramAnonymousfl.g(this, paramString);
}
});
}
示例4: C
import com.google.android.gms.games.multiplayer.turnbased.TurnBasedMultiplayer; //导入方法依赖的package包/类
public TurnBasedMultiplayer.CancelMatchResult C(final Status paramStatus)
{
return new TurnBasedMultiplayer.CancelMatchResult()
{
public String getMatchId()
{
return gb.a.a(gb.a.this);
}
public Status getStatus()
{
return paramStatus;
}
};
}