當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。