what-the-bank/sources/com/google/android/gms/location/GeofencingClient.java

81 lines
3.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.location;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Context;
import com.google.android.gms.common.api.Api;
import com.google.android.gms.common.api.GoogleApi;
import com.google.android.gms.common.api.internal.RemoteCall;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.TaskCompletionSource;
import java.util.List;
/* loaded from: classes2.dex */
public class GeofencingClient extends GoogleApi<Api.ApiOptions.NoOptions> {
public static final int zza = 0;
public GeofencingClient(Activity activity) {
super(activity, LocationServices.API, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS);
}
public Task<Void> addGeofences(GeofencingRequest geofencingRequest, final PendingIntent pendingIntent) {
final GeofencingRequest zza2 = geofencingRequest.zza(getContextAttributionTag());
return doWrite(TaskApiCall.builder().run(new RemoteCall(zza2, pendingIntent) { // from class: com.google.android.gms.location.zzay
public final GeofencingRequest zza;
public final PendingIntent zzb;
@Override // com.google.android.gms.common.api.internal.RemoteCall
public final void accept(Object obj, Object obj2) {
GeofencingRequest geofencingRequest2 = this.zza;
PendingIntent pendingIntent2 = this.zzb;
int i = GeofencingClient.zza;
((com.google.android.gms.internal.location.zzbe) obj).zzq(geofencingRequest2, pendingIntent2, new zzba((TaskCompletionSource) obj2));
}
{
this.zza = zza2;
this.zzb = pendingIntent;
}
}).setMethodKey(2424).build());
}
public Task<Void> removeGeofences(final PendingIntent pendingIntent) {
return doWrite(TaskApiCall.builder().run(new RemoteCall(pendingIntent) { // from class: com.google.android.gms.location.zzax
public final PendingIntent zza;
@Override // com.google.android.gms.common.api.internal.RemoteCall
public final void accept(Object obj, Object obj2) {
PendingIntent pendingIntent2 = this.zza;
int i = GeofencingClient.zza;
((com.google.android.gms.internal.location.zzbe) obj).zzw(pendingIntent2, new zzba((TaskCompletionSource) obj2));
}
{
this.zza = pendingIntent;
}
}).setMethodKey(2425).build());
}
public GeofencingClient(Context context) {
super(context, LocationServices.API, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS);
}
public Task<Void> removeGeofences(final List<String> list) {
return doWrite(TaskApiCall.builder().run(new RemoteCall(list) { // from class: com.google.android.gms.location.zzaz
public final List zza;
@Override // com.google.android.gms.common.api.internal.RemoteCall
public final void accept(Object obj, Object obj2) {
List list2 = this.zza;
int i = GeofencingClient.zza;
((com.google.android.gms.internal.location.zzbe) obj).zzx(list2, new zzba((TaskCompletionSource) obj2));
}
{
this.zza = list;
}
}).setMethodKey(2425).build());
}
}