Java 类com.google.android.gms.location.LocationClient.OnRemoveGeofencesResultListener 实例源码

项目:QuizUpWinner    文件:gn.java   
public void removeGeofences(PendingIntent paramPendingIntent, LocationClient.OnRemoveGeofencesResultListener paramOnRemoveGeofencesResultListener)
{
  bP();
  eg.b(paramPendingIntent, "PendingIntent must be specified.");
  eg.b(paramOnRemoveGeofencesResultListener, "OnRemoveGeofencesResultListener not provided.");
  b localb1;
  if (paramOnRemoveGeofencesResultListener == null)
    localb1 = null;
  try
  {
    localb1 = new b(paramOnRemoveGeofencesResultListener, this);
    b localb2 = localb1;
    ((gl)bQ()).a(paramPendingIntent, localb2, getContext().getPackageName());
    return;
  }
  catch (RemoteException localRemoteException)
  {
    throw new IllegalStateException(localRemoteException);
  }
}
项目:QuizUpWinner    文件:gn.java   
public void removeGeofences(List<String> paramList, LocationClient.OnRemoveGeofencesResultListener paramOnRemoveGeofencesResultListener)
{
  bP();
  boolean bool;
  if ((paramList != null) && (paramList.size() > 0))
    bool = true;
  else
    bool = false;
  eg.b(bool, "geofenceRequestIds can't be null nor empty.");
  eg.b(paramOnRemoveGeofencesResultListener, "OnRemoveGeofencesResultListener not provided.");
  String[] arrayOfString = (String[])paramList.toArray(new String[0]);
  b localb1;
  if (paramOnRemoveGeofencesResultListener == null)
    localb1 = null;
  try
  {
    localb1 = new b(paramOnRemoveGeofencesResultListener, this);
    b localb2 = localb1;
    ((gl)bQ()).a(arrayOfString, localb2, getContext().getPackageName());
    return;
  }
  catch (RemoteException localRemoteException)
  {
    throw new IllegalStateException(localRemoteException);
  }
}
项目:QuizUpWinner    文件:gn.java   
protected final void a(LocationClient.OnRemoveGeofencesResultListener paramOnRemoveGeofencesResultListener)
{
  if (paramOnRemoveGeofencesResultListener != null)
  {
    switch (this.yd)
    {
    default:
      break;
    case 1:
      paramOnRemoveGeofencesResultListener.onRemoveGeofencesByPendingIntentResult(this.mC, this.mPendingIntent);
      return;
    case 2:
      paramOnRemoveGeofencesResultListener.onRemoveGeofencesByRequestIdsResult(this.mC, this.xY);
      return;
    }
    Log.wtf("LocationClientImpl", "Unsupported action: " + this.yd);
  }
}
项目:QuizUpWinner    文件:gn.java   
public d(int paramOnRemoveGeofencesResultListener, LocationClient.OnRemoveGeofencesResultListener paramInt1, int paramPendingIntent, PendingIntent arg5)
{
  super(paramInt1);
  boolean bool;
  if (paramOnRemoveGeofencesResultListener == 1)
    bool = true;
  else
    bool = false;
  ds.p(bool);
  this.yd = paramOnRemoveGeofencesResultListener;
  this.mC = LocationStatusCodes.aR(paramPendingIntent);
  Object localObject;
  this.mPendingIntent = localObject;
  this.xY = null;
}
项目:QuizUpWinner    文件:gn.java   
public d(int paramOnRemoveGeofencesResultListener, LocationClient.OnRemoveGeofencesResultListener paramInt1, int paramArrayOfString, String[] arg5)
{
  super(paramInt1);
  boolean bool;
  if (paramOnRemoveGeofencesResultListener == 2)
    bool = true;
  else
    bool = false;
  ds.p(bool);
  this.yd = paramOnRemoveGeofencesResultListener;
  this.mC = LocationStatusCodes.aR(paramArrayOfString);
  Object localObject;
  this.xY = localObject;
  this.mPendingIntent = null;
}
项目:MapAlarmist    文件:GeoAlarm.java   
public void disableAlarm(Context context, LocationClient locationClient,
        OnRemoveGeofencesResultListener listener) {
    /*
     * List<String> geofenceIds = new ArrayList<String>();
     * geofenceIds.add(GeoAlarmUtils.GEOFENCE_REQUEST_ID);
     * locationClient.removeGeofences(geofenceIds, listener);
     */

    AlarmManager am = (AlarmManager) context
            .getSystemService(Context.ALARM_SERVICE);
    PendingIntent alarmWakeUpPendingIntent = getAlarmWakeUpPendingIntent(context);
    am.cancel(alarmWakeUpPendingIntent);
}
项目:QuizUpWinner    文件:gn.java   
public b(LocationClient.OnRemoveGeofencesResultListener paramOnRemoveGeofencesResultListener, gn paramgn)
{
  this.yb = paramOnRemoveGeofencesResultListener;
  this.ya = null;
  this.yc = paramgn;
}