当前位置: 首页>>代码示例>>Java>>正文


Java TurnBasedMultiplayer.CancelMatchResult方法代码示例

本文整理汇总了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.");
}
 
开发者ID:antonioalmeida,项目名称:retro-reversi,代码行数:11,代码来源:AndroidLauncher.java

示例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.");
}
 
开发者ID:NahroTo,项目名称:Fruit-Destroyer,代码行数:13,代码来源:SkeletonActivity.java

示例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);
    }
  });
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:11,代码来源:gb.java

示例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;
    }
  };
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:16,代码来源:gb.java


注:本文中的com.google.android.gms.games.multiplayer.turnbased.TurnBasedMultiplayer.CancelMatchResult方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。