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

项目:QuizUpWinner    文件:gn.java   
public void addGeofences(List<go> paramList, PendingIntent paramPendingIntent, LocationClient.OnAddGeofencesResultListener paramOnAddGeofencesResultListener)
{
  bP();
  boolean bool;
  if ((paramList != null) && (paramList.size() > 0))
    bool = true;
  else
    bool = false;
  eg.b(bool, "At least one geofence must be specified.");
  eg.b(paramPendingIntent, "PendingIntent must be specified.");
  eg.b(paramOnAddGeofencesResultListener, "OnAddGeofencesResultListener not provided.");
  b localb1;
  if (paramOnAddGeofencesResultListener == null)
    localb1 = null;
  try
  {
    localb1 = new b(paramOnAddGeofencesResultListener, this);
    b localb2 = localb1;
    ((gl)bQ()).a(paramList, paramPendingIntent, localb2, getContext().getPackageName());
    return;
  }
  catch (RemoteException localRemoteException)
  {
    throw new IllegalStateException(localRemoteException);
  }
}
项目:MapAlarmist    文件:GeoAlarm.java   
public void setAlarm(Context context, LocationClient locationClient,
        OnAddGeofencesResultListener listener) {
    /*
     * PendingIntent transitionPendingIntent =
     * getTransitionPendingIntent(context); List<Geofence> geofences = new
     * ArrayList<Geofence>(); geofences.add(buildGeofence());
     * locationClient.addGeofences(geofences, transitionPendingIntent,
     * listener);
     */

    AlarmManager am = (AlarmManager) context
            .getSystemService(Context.ALARM_SERVICE);
    PendingIntent alarmWakeUpPendingIntent = getAlarmWakeUpPendingIntent(context);
    am.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, 2 * 60 * 1000,
            2 * 60 * 1000, alarmWakeUpPendingIntent);
    alarmSetTime = SystemClock.elapsedRealtime();
}
项目:QuizUpWinner    文件:gn.java   
public a(LocationClient.OnAddGeofencesResultListener paramInt, int paramArrayOfString, String[] arg4)
{
  super(paramInt);
  this.mC = LocationStatusCodes.aR(paramArrayOfString);
  Object localObject;
  this.xY = localObject;
}
项目:QuizUpWinner    文件:gn.java   
protected final void a(LocationClient.OnAddGeofencesResultListener paramOnAddGeofencesResultListener)
{
  if (paramOnAddGeofencesResultListener != null)
    paramOnAddGeofencesResultListener.onAddGeofencesResult(this.mC, this.xY);
}
项目:QuizUpWinner    文件:gn.java   
public b(LocationClient.OnAddGeofencesResultListener paramOnAddGeofencesResultListener, gn paramgn)
{
  this.ya = paramOnAddGeofencesResultListener;
  this.yb = null;
  this.yc = paramgn;
}