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


Java ConnectionCallbacks类代码示例

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


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

示例1: Builder

import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; //导入依赖的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

示例2: Builder

import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; //导入依赖的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

示例3: Builder

import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; //导入依赖的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

示例4: onReceive

import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; //导入依赖的package包/类
@Override
public void onReceive(final Context context, final Intent intent)
{
    final NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
    final LocationClient locationClient = new LocationClient(context, connectionCallbacks, onConnectionFailedListener);
    locationClient.registerConnectionCallbacks(new ConnectionCallbacks() {

        @Override
        public void onDisconnected()
        {
            Log.d(LOG, "StopTracking.onDisconnected");
        }

        @Override
        public void onConnected(Bundle arg0)
        {
            final PendingIntent service = PendingIntent.getService(context, 0,
                    new Intent(context, ShareByTracking.class), PendingIntent.FLAG_UPDATE_CURRENT);
            locationClient.removeLocationUpdates(service);
            locationClient.disconnect();
            notificationManager.cancel(R.string.app_name);
            Log.d(LOG, "StopTracking.onConnected");
        }
    });

    locationClient.connect();
}
 
开发者ID:sylvek,项目名称:sharemyposition,代码行数:28,代码来源:ShareByTracking.java

示例5: onCreate

import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; //导入依赖的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

示例6: isConnectionCallbacksRegistered

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

示例7: registerConnectionCallbacks

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

示例8: unregisterConnectionCallbacks

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

示例9: GamesClient

import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; //导入依赖的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

示例10: isConnectionCallbacksRegistered

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

示例11: registerConnectionCallbacks

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

示例12: unregisterConnectionCallbacks

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

示例13: gn

import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; //导入依赖的package包/类
public gn(Context paramContext, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener, String paramString)
{
  super(paramContext, paramConnectionCallbacks, paramOnConnectionFailedListener, new String[0]);
  this.xX = paramString;
  this.jG = null;
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:7,代码来源:gn.java

示例14: by

import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; //导入依赖的package包/类
public by(Context paramContext, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener, int paramInt)
{
  super(paramContext, paramConnectionCallbacks, paramOnConnectionFailedListener, new String[0]);
  this.hp = paramInt;
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:6,代码来源:by.java

示例15: ActivityRecognitionClient

import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; //导入依赖的package包/类
public ActivityRecognitionClient(Context paramContext, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.xl = new gn(paramContext, paramConnectionCallbacks, paramOnConnectionFailedListener, "activity_recognition");
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:ActivityRecognitionClient.java


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