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


Java OnInvitationReceivedListener类代码示例

本文整理汇总了Java中com.google.android.gms.games.multiplayer.OnInvitationReceivedListener的典型用法代码示例。如果您正苦于以下问题:Java OnInvitationReceivedListener类的具体用法?Java OnInvitationReceivedListener怎么用?Java OnInvitationReceivedListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


OnInvitationReceivedListener类属于com.google.android.gms.games.multiplayer包,在下文中一共展示了OnInvitationReceivedListener类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: registerInvitationListener

import com.google.android.gms.games.multiplayer.OnInvitationReceivedListener; //导入依赖的package包/类
public final void registerInvitationListener(OnInvitationReceivedListener paramOnInvitationReceivedListener)
{
  // Byte code:
  //   0: new 765	com/google/android/gms/internal/fl$l
  //   3: dup
  //   4: aload_0
  //   5: aload_1
  //   6: invokespecial 768	com/google/android/gms/internal/fl$l:<init>	(Lcom/google/android/gms/internal/fl;Lcom/google/android/gms/games/multiplayer/OnInvitationReceivedListener;)V
  //   9: astore_2
  //   10: aload_0
  //   11: invokevirtual 149	com/google/android/gms/internal/fl:bQ	()Landroid/os/IInterface;
  //   14: checkcast 151	com/google/android/gms/internal/fp
  //   17: aload_2
  //   18: aload_0
  //   19: getfield 101	com/google/android/gms/internal/fl:tV	J
  //   22: invokeinterface 771 4 0
  //   27: return
  //   28: ldc 169
  //   30: ldc_w 256
  //   33: invokestatic 259	com/google/android/gms/internal/fn:c	(Ljava/lang/String;Ljava/lang/String;)V
  //   36: return
  //
  // Exception table:
  //   from	to	target	type
  //   0	27	28	android/os/RemoteException
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:27,代码来源:fl.java

示例2: onSignInSucceeded

import com.google.android.gms.games.multiplayer.OnInvitationReceivedListener; //导入依赖的package包/类
@Override public void onSignInSucceeded() {
    achievements = new GoogleAchievements(activity, helper.getApiClient());
    cloudSave = new GoogleCloudSave(activity, helper.getApiClient());
    multiplayer = new GameServicesMultiplayer(activity, helper.getApiClient(), helper.getInvitation());
    Games.Invitations
        .loadInvitations(helper.getApiClient())
        .setResultCallback(new ResultCallback<Invitations.LoadInvitationsResult>() {
            @Override public void onResult(final Invitations.LoadInvitationsResult result) {
                if (multiplayer == null) return;
                multiplayer.loadInvitations(result.getInvitations());
            }
        });
    invitationListenerRegistered = true;
    Games.Invitations.registerInvitationListener(helper.getApiClient(), new OnInvitationReceivedListener() {
        @Override public void onInvitationReceived(final Invitation invitation) {
            if (multiplayer == null) return;
            multiplayer.onInvitationReceived(invitation);
        }

        @Override public void onInvitationRemoved(final String s) {
            if (multiplayer == null) return;
            multiplayer.onInvitationRemoved(s);
        }
    });
    Gdx.app.postRunnable(new Runnable() {
        @Override public void run() {
            dispatcher.setState(ServicesState.CONNECTED);
        }
    });
}
 
开发者ID:ratrecommends,项目名称:dice-heroes,代码行数:31,代码来源:GameServicesHelper.java

示例3: registerInvitationListener

import com.google.android.gms.games.multiplayer.OnInvitationReceivedListener; //导入依赖的package包/类
@Deprecated
public final void registerInvitationListener(OnInvitationReceivedListener paramOnInvitationReceivedListener)
{
  this.te.registerInvitationListener(paramOnInvitationReceivedListener);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:6,代码来源:GamesClient.java

示例4: l

import com.google.android.gms.games.multiplayer.OnInvitationReceivedListener; //导入依赖的package包/类
l(OnInvitationReceivedListener arg2)
{
  Object localObject;
  this.ud = localObject;
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:6,代码来源:fl.java

示例5: m

import com.google.android.gms.games.multiplayer.OnInvitationReceivedListener; //导入依赖的package包/类
m(OnInvitationReceivedListener paramInvitation, Invitation arg3)
{
  super(paramInvitation);
  Object localObject;
  this.ue = localObject;
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:7,代码来源:fl.java

示例6: a

import com.google.android.gms.games.multiplayer.OnInvitationReceivedListener; //导入依赖的package包/类
protected final void a(OnInvitationReceivedListener paramOnInvitationReceivedListener)
{
  paramOnInvitationReceivedListener.onInvitationReceived(this.ue);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:fl.java

示例7: n

import com.google.android.gms.games.multiplayer.OnInvitationReceivedListener; //导入依赖的package包/类
n(OnInvitationReceivedListener paramString, String arg3)
{
  super(paramString);
  Object localObject;
  this.uf = localObject;
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:7,代码来源:fl.java

示例8: registerInvitationListener

import com.google.android.gms.games.multiplayer.OnInvitationReceivedListener; //导入依赖的package包/类
public final void registerInvitationListener(GoogleApiClient paramGoogleApiClient, OnInvitationReceivedListener paramOnInvitationReceivedListener)
{
  Games.j(paramGoogleApiClient).registerInvitationListener(paramOnInvitationReceivedListener);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:fv.java


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