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


Java OnConnectionFailedListener类代码示例

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


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

示例1: registerConnectionFailedListener

import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener; //导入依赖的package包/类
public final void registerConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  eg.f(paramOnConnectionFailedListener);
  synchronized (this.pw)
  {
    if (this.pw.contains(paramOnConnectionFailedListener))
    {
      new StringBuilder("registerConnectionFailedListener(): listener ").append(paramOnConnectionFailedListener).append(" is already registered");
    }
    else
    {
      if (this.px)
        this.pw = new ArrayList(this.pw);
      this.pw.add(paramOnConnectionFailedListener);
    }
    return;
  }
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:19,代码来源:dx.java

示例2: Builder

import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener; //导入依赖的package包/类
public Builder(Context paramContext, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.mContext = paramContext;
  this.Dz = paramConnectionCallbacks;
  this.jE = paramOnConnectionFailedListener;
  this.DA = new hv(this.mContext);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:8,代码来源:PlusClient.java

示例3: Builder

import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener; //导入依赖的package包/类
public Builder(Context paramContext, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.mContext = paramContext;
  this.tx = paramContext.getPackageName();
  this.jD = paramConnectionCallbacks;
  this.jE = paramOnConnectionFailedListener;
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:8,代码来源:GamesClient.java

示例4: a

import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener; //导入依赖的package包/类
public final void a(ConnectionResult paramConnectionResult)
{
  this.mHandler.removeMessages(1);
  while (true)
  {
    int i;
    synchronized (this.pw)
    {
      this.px = true;
      ArrayList localArrayList2 = this.pw;
      i = 0;
      int j = localArrayList2.size();
      if (i < j)
      {
        if (!this.ps.bp())
          return;
        if (this.pw.contains(localArrayList2.get(i)))
          ((GooglePlayServicesClient.OnConnectionFailedListener)localArrayList2.get(i)).onConnectionFailed(paramConnectionResult);
      }
      else
      {
        this.px = false;
        return;
      }
    }
    i++;
  }
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:29,代码来源:dx.java

示例5: isConnectionFailedListenerRegistered

import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener; //导入依赖的package包/类
public final boolean isConnectionFailedListenerRegistered(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  eg.f(paramOnConnectionFailedListener);
  synchronized (this.pw)
  {
    boolean bool = this.pw.contains(paramOnConnectionFailedListener);
    return bool;
  }
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:10,代码来源:dx.java

示例6: unregisterConnectionFailedListener

import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener; //导入依赖的package包/类
public final void unregisterConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  eg.f(paramOnConnectionFailedListener);
  synchronized (this.pw)
  {
    if (this.pw != null)
    {
      if (this.px)
        this.pw = new ArrayList(this.pw);
      if (!this.pw.remove(paramOnConnectionFailedListener))
        new StringBuilder("unregisterConnectionFailedListener(): listener ").append(paramOnConnectionFailedListener).append(" not found");
    }
    return;
  }
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:16,代码来源:dx.java

示例7: Builder

import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener; //导入依赖的package包/类
public Builder(Context paramContext, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.mContext = paramContext;
  this.jD = paramConnectionCallbacks;
  this.jE = paramOnConnectionFailedListener;
  this.jF = jC;
  this.jG = "<<default account>>";
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:9,代码来源:AppStateClient.java

示例8: GoogleApiClient

import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener; //导入依赖的package包/类
private GoogleApiClient(Context paramContext, dt paramdt, Map<Api, ApiOptions> paramMap, Set<ConnectionCallbacks> paramSet, Set<OnConnectionFailedListener> paramSet1)
{
  Iterator localIterator1 = paramSet.iterator();
  while (localIterator1.hasNext())
  {
    ConnectionCallbacks localConnectionCallbacks = (ConnectionCallbacks)localIterator1.next();
    this.ne.registerConnectionCallbacks(localConnectionCallbacks);
  }
  Iterator localIterator2 = paramSet1.iterator();
  while (localIterator2.hasNext())
  {
    OnConnectionFailedListener localOnConnectionFailedListener = (OnConnectionFailedListener)localIterator2.next();
    this.ne.registerConnectionFailedListener(localOnConnectionFailedListener);
  }
  Iterator localIterator3 = paramMap.keySet().iterator();
  while (localIterator3.hasNext())
  {
    Api localApi = (Api)localIterator3.next();
    final Api.b localb = localApi.bj();
    ApiOptions localApiOptions = (ApiOptions)paramMap.get(localApi);
    this.nl.put(localb, localb.b(paramContext, paramdt, localApiOptions, this.no, new OnConnectionFailedListener()
    {
      public void onConnectionFailed(ConnectionResult paramAnonymousConnectionResult)
      {
        synchronized (GoogleApiClient.c(GoogleApiClient.this))
        {
          if ((GoogleApiClient.h(GoogleApiClient.this) == null) || (localb.getPriority() < GoogleApiClient.i(GoogleApiClient.this)))
          {
            GoogleApiClient.a(GoogleApiClient.this, paramAnonymousConnectionResult);
            GoogleApiClient.b(GoogleApiClient.this, localb.getPriority());
          }
          GoogleApiClient.f(GoogleApiClient.this);
          return;
        }
      }
    }));
  }
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:39,代码来源:GoogleApiClient.java

示例9: Builder

import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener; //导入依赖的package包/类
public Builder(Context paramContext, GoogleApiClient.ConnectionCallbacks paramConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this(paramContext);
  eg.b(paramConnectionCallbacks, "Must provide a connected listener");
  this.nx.add(paramConnectionCallbacks);
  eg.b(paramOnConnectionFailedListener, "Must provide a connection failed listener");
  this.ny.add(paramOnConnectionFailedListener);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:9,代码来源:GoogleApiClient.java

示例10: onCreate

import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_main);
	locationClient = new LocationClient(this, new ConnectionCallbacks() {
		@Override
		public void onConnected(Bundle connectionHint) {
			if (BuildConfig.DEBUG)
				Log.i(TAG, "Location onConnected");
			MainActivity.this.locationClientConnected = true;
		}

		@Override
		public void onDisconnected() {
			if (BuildConfig.DEBUG)
				Log.i(TAG, "Location onDisconnected");
			MainActivity.this.locationClientConnected = false;
		}
	}, new OnConnectionFailedListener() {
		@Override
		public void onConnectionFailed(ConnectionResult result) {
			if (BuildConfig.DEBUG)
				Log.i(TAG, "Location onConnectionFailed");
			MainActivity.this.locationClientConnected = false;
		}
	});
}
 
开发者ID:tomwhite,项目名称:chickenalerts,代码行数:28,代码来源:MainActivity.java

示例11: isConnectionFailedListenerRegistered

import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener; //导入依赖的package包/类
@Deprecated
public boolean isConnectionFailedListenerRegistered(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  return this.Du.isConnectionFailedListenerRegistered(paramOnConnectionFailedListener);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:6,代码来源:PlusClient.java

示例12: registerConnectionFailedListener

import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener; //导入依赖的package包/类
@Deprecated
public void registerConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.Du.registerConnectionFailedListener(paramOnConnectionFailedListener);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:6,代码来源:PlusClient.java

示例13: unregisterConnectionFailedListener

import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener; //导入依赖的package包/类
@Deprecated
public void unregisterConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.Du.unregisterConnectionFailedListener(paramOnConnectionFailedListener);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:6,代码来源:PlusClient.java

示例14: GamesClient

import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener; //导入依赖的package包/类
private GamesClient(Context paramContext, String paramString1, String paramString2, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener, String[] paramArrayOfString, int paramInt1, View paramView, boolean paramBoolean, int paramInt2)
{
  this.te = new fl(paramContext, paramString1, paramString2, paramConnectionCallbacks, paramOnConnectionFailedListener, paramArrayOfString, paramInt1, paramView, false, paramBoolean, paramInt2);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:GamesClient.java

示例15: isConnectionFailedListenerRegistered

import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener; //导入依赖的package包/类
@Deprecated
public final boolean isConnectionFailedListenerRegistered(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  return this.te.isConnectionFailedListenerRegistered(paramOnConnectionFailedListener);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:6,代码来源:GamesClient.java


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