本文整理汇总了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");
}