本文整理匯總了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);
}
示例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;
}
示例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>>";
}
示例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();
}
示例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;
}
});
}
示例6: isConnectionCallbacksRegistered
import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; //導入依賴的package包/類
@Deprecated
public boolean isConnectionCallbacksRegistered(GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks)
{
return this.Du.isConnectionCallbacksRegistered(paramConnectionCallbacks);
}
示例7: registerConnectionCallbacks
import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; //導入依賴的package包/類
@Deprecated
public void registerConnectionCallbacks(GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks)
{
this.Du.registerConnectionCallbacks(paramConnectionCallbacks);
}
示例8: unregisterConnectionCallbacks
import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; //導入依賴的package包/類
@Deprecated
public void unregisterConnectionCallbacks(GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks)
{
this.Du.unregisterConnectionCallbacks(paramConnectionCallbacks);
}
示例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);
}
示例10: isConnectionCallbacksRegistered
import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; //導入依賴的package包/類
@Deprecated
public final boolean isConnectionCallbacksRegistered(GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks)
{
return this.te.isConnectionCallbacksRegistered(paramConnectionCallbacks);
}
示例11: registerConnectionCallbacks
import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; //導入依賴的package包/類
@Deprecated
public final void registerConnectionCallbacks(GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks)
{
this.te.registerConnectionCallbacks(paramConnectionCallbacks);
}
示例12: unregisterConnectionCallbacks
import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; //導入依賴的package包/類
@Deprecated
public final void unregisterConnectionCallbacks(GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks)
{
this.te.unregisterConnectionCallbacks(paramConnectionCallbacks);
}
示例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;
}
示例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;
}
示例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");
}