69 lines
2.6 KiB
Java
69 lines
2.6 KiB
Java
|
package com.google.android.gms.location;
|
||
|
|
||
|
import android.app.Activity;
|
||
|
import android.content.Context;
|
||
|
import com.google.android.gms.common.api.Api;
|
||
|
import com.google.android.gms.common.api.GoogleApiClient;
|
||
|
import com.google.android.gms.common.internal.Preconditions;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public class LocationServices {
|
||
|
public static final Api<Api.ApiOptions.NoOptions> API;
|
||
|
|
||
|
@Deprecated
|
||
|
public static final FusedLocationProviderApi FusedLocationApi;
|
||
|
|
||
|
@Deprecated
|
||
|
public static final GeofencingApi GeofencingApi;
|
||
|
|
||
|
@Deprecated
|
||
|
public static final SettingsApi SettingsApi;
|
||
|
private static final Api.ClientKey zza;
|
||
|
private static final Api.AbstractClientBuilder zzb;
|
||
|
|
||
|
static {
|
||
|
Api.ClientKey clientKey = new Api.ClientKey();
|
||
|
zza = clientKey;
|
||
|
zzbq zzbqVar = new zzbq();
|
||
|
zzb = zzbqVar;
|
||
|
API = new Api<>("LocationServices.API", zzbqVar, clientKey);
|
||
|
FusedLocationApi = new com.google.android.gms.internal.location.zzz();
|
||
|
GeofencingApi = new com.google.android.gms.internal.location.zzaf();
|
||
|
SettingsApi = new com.google.android.gms.internal.location.zzbm();
|
||
|
}
|
||
|
|
||
|
public static FusedLocationProviderClient getFusedLocationProviderClient(Activity activity) {
|
||
|
return new FusedLocationProviderClient(activity);
|
||
|
}
|
||
|
|
||
|
public static GeofencingClient getGeofencingClient(Activity activity) {
|
||
|
return new GeofencingClient(activity);
|
||
|
}
|
||
|
|
||
|
public static SettingsClient getSettingsClient(Activity activity) {
|
||
|
return new SettingsClient(activity);
|
||
|
}
|
||
|
|
||
|
public static com.google.android.gms.internal.location.zzbe zza(GoogleApiClient googleApiClient) {
|
||
|
Preconditions.checkArgument(googleApiClient != null, "GoogleApiClient parameter is required.");
|
||
|
com.google.android.gms.internal.location.zzbe zzbeVar = (com.google.android.gms.internal.location.zzbe) googleApiClient.getClient(zza);
|
||
|
Preconditions.checkState(zzbeVar != null, "GoogleApiClient is not configured to use the LocationServices.API Api. Pass thisinto GoogleApiClient.Builder#addApi() to use this feature.");
|
||
|
return zzbeVar;
|
||
|
}
|
||
|
|
||
|
public static FusedLocationProviderClient getFusedLocationProviderClient(Context context) {
|
||
|
return new FusedLocationProviderClient(context);
|
||
|
}
|
||
|
|
||
|
public static GeofencingClient getGeofencingClient(Context context) {
|
||
|
return new GeofencingClient(context);
|
||
|
}
|
||
|
|
||
|
public static SettingsClient getSettingsClient(Context context) {
|
||
|
return new SettingsClient(context);
|
||
|
}
|
||
|
|
||
|
private LocationServices() {
|
||
|
}
|
||
|
}
|